This project is archived and is in readonly mode.

#5309 ✓resolved
Blane Dabney

Major ActiveRecord slowness

Reported by Blane Dabney | August 5th, 2010 @ 04:51 PM

ActiveRecord performs increasingly poorly as the result set size increases in 3.0.0.rc.

I get this strace output at least once (if not more) for every object in the result (ChildA is the AR class):

rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat("/application/app/helpers/child_a/child_a.rb", 0x7fffb53d1290) = -1 ENOENT (No such file or directory)
stat("/application/app/models/child_a/child_a.rb", 0x7fffb53d1290) = -1 ENOENT (No such file or directory)
stat("/application/app/middleware/child_a/child_a.rb", 0x7fffb53d1290) = -1 ENOENT (No such file or directory)
stat("/application/app/controllers/child_a/child_a.rb", 0x7fffb53d1290) = -1 ENOENT (No such file or directory)
stat("/application/app/helpers/child_a/child_a", 0x7fffb53d00e0) = -1 ENOENT (No such file or directory)
stat("/application/app/models/child_a/child_a", 0x7fffb53d00e0) = -1 ENOENT (No such file or directory)
stat("/application/app/middleware/child_a/child_a", 0x7fffb53d00e0) = -1 ENOENT (No such file or directory)
stat("/application/app/controllers/child_a/child_a", 0x7fffb53d00e0) = -1 ENOENT (No such file or directory)

This is when running in development mode. No idea if production mode has the same issue.

Comments and changes to this ticket

  • Rohit Arondekar

    Rohit Arondekar October 7th, 2010 @ 05:27 AM

    • State changed from “new” to “resolved”
    • Tag set to activerecord
    • Importance changed from “” to “Low”

    A lot of work has been done by Aaron Patterson with regards to AR performance both before and after 3.0 release. There has been a lot of improvements in performance.

    Marking ticket as resolved. In case the above issue is still happening in 3.0 or 3-0-stable branch or even master just leave a comment and I'll reopen it.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages