DEV Community

Discussion on: Export Records to CSV Files with Rails

Collapse
 
victorhazbun profile image
Victor Hazbun

UPDATE: I was using #each, I changed it to#find_each which saves memory. See api.rubyonrails.org/classes/Active...

Collapse
 
countalucard2022 profile image
countalucard2022

But this will not be a report friendly, find_each forces the sequence to be order by id desc :( thanks to the postoverall!