Speed Up Allocating ActiveRecord Objects
Too Long; Didn't Read
In one of projects at work we needed to generate big report and ActiveRecord was too slow and too memory hungry for this. In some edge cases it took more then an hour to generate report with 100,000–200,000 rows. Memory was more then 2GB, VM start swapping and all instances running on that VM become slow.