title: What is the most efficient way to store temp data for processing?
body: <p>I am writing an application in Ruby, which collect huge amount of data from API calls and stores it in a file. After that it processes it one by one. I was wondering if there is a way better than this to achieve the same? </p>
  
  <p>Note: I want to process the records one by one by storing all of them locally because they may change during API calls.</p>