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 - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -