parsing - How can I cut down on the size of file loaded into Roo object in Rails? -


i using roo gem parse data in csv. csv around 400mb in size however, , when attempt parse loop...

(2..sheet.last_row).collect |i|    # parsing code... end 

it error out [fatal] failed allocate memory. going break smaller loops until reaches last_row, asking roo last_row cause error -- can't tackle way.


Comments

Popular posts from this blog

javascript - How to update a get parameter in a url with jquery -

c - Run time Error with scanf -

amazon web services - How to determine the state of an AWS instance -