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".
No comments yet.