Displaying 1 result from an estimated 1 matches for "400_000".
Did you mean:
400000
2012 Jan 11
4
ActiveRecord: ar-each_model
Hi,
today I went into a problem, when I had to iterate over a big result
set. ActiveRecord produces a huge array of model instances, which
consumed 1GB of memory on my machine. A comparable perl DBI script
only used some KB for iterating over the result set.
Then I was suggested to use batch (#find_each) for the problem. But
basically batch does the same thing by splitting the query into
several