paint-brush
Speed Up Allocating ActiveRecord Objectsby@pavelevstigneev
1,634 reads
1,634 reads

Speed Up Allocating ActiveRecord Objects

by Pavel Evstigneev2mSeptember 9th, 2016
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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.
featured image - Speed Up Allocating ActiveRecord Objects
Pavel Evstigneev HackerNoon profile picture
Pavel Evstigneev

Pavel Evstigneev

@pavelevstigneev

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite