I added the bullet gem to advise me of any N+1 queries in dev (Rails 4.0.2) It advised eager loading two parent associations of a model where I'm displaying all its records.
Before eager loading one of these belongs-to associations:
Completed 200 OK in 5252ms (Views: 1.8ms | ActiveRecord: 114.1ms)
After eager loading:
Completed 200 OK in 6741ms (Views: 2.1ms | ActiveRecord: 146.0ms)
Also, with eager loading, the browser hangs after the console says completed and doesn't updated for an age (about 6 seconds). The server production didn't have this freezing issue but still it appears in this case eager loading is bad advice.
Does it make sense that eager loading can be slower? The view does access the (eager loaded) parent record.
Also the bullet gem doesn't display the call stack for some reason.