Exporting significant SQL reports with ActiveRecord
30-Aug-2018 1797
A few months ago we faced a memory issue on some of our background jobs. Heroku was killing our dyno because it was exceeding its allowed memory. Thanks to our instrumentation of Sidekiq, it was easy to spot the culprit. The job was doing a fairly complex SQL request, and outputing the query’s result into a CSV file before archiving this file.
Exporting significant SQL reports with ActiveRecord #ruby #rubydeveloper #rubyonrails #Exporting #significant #reports #ActiveRecord #activerecord #sql https://rubyonrails.ba/link/exporting-significant-sql-reports-with-activerecord