3 ms·
You will definitely need to profile/optimize and hand code some queries. I ran into a bad one a while back (2.2.2): @foo = Foo.create @bars = Bar.find_a
by klochner 16y ago
You will definitely need to profile/optimize and hand code some queries. I ran into a bad one a while back (2.2.2):
@foo = Foo.create
@bars = Bar.find_all_by_some_attribute(:a)
@foo.bars = @bars #--> slow!
http://kevinlochner.com/rails-performance-inefficiencies http://kevinlochner.com/rails-performance-inefficiencies