0

I'm running out of memory on Heroku when try to export to csv 200 thousands records. This is not too much records so I think that active records is fetching data with inefficient way. How can I solve this problem?

Mateusz Urbański
  • 7,352
  • 15
  • 68
  • 133

1 Answers1

1

You can first write CSV into file and send it to client after this. Here is a good answer how to write large amount of data efficiently.

I hope there is a way in ActiveAdmin to override default behavior of CSV download.

Community
  • 1
  • 1
dimakura
  • 7,575
  • 17
  • 36