Re:Stop relying on your ORM and learn SQL
by elitheeli on Tuesday March 01, 2011 @03:02PM
(#2276962)
ActiveRecord (Rails) provides counter caches for this instance. There are also gems that will analyze the queries your ORM performs to tell you which ones you should optimize.
I tend to stick with "premature optimization is the root of all evil".
I tend to stick with "premature optimization is the root of all evil".