Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
Standup 09/30/2011: Bulk inserts

Ask for Help

“Our delayed job consumes 2G of memory creating ~20k ActiveRecords in a loop!”

It doesn’t answer why your job is using so much memory, but check out activerecord-import.

Comments
  1. Will Bryant says:

    It’s probably using so much memory because on Rails 3.0 and above, references to all saved records are retained until the end of the transaction. See discussion on rails-core this week regarding an appropriate fix.

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *