News for hackers. Stuff that matters.
Re:Using Nested Selects for Performance in Rails by schneidmaster on Tuesday June 30, 2015 @11:26AM (#9805952)
Author here. That would work for a count (so perhaps that was a poor example to choose for this post) but we also use calculated_attributes for many more complex cases (for example, querying the earliest date in 3 columns across 3 tables).
Re:Using Nested Selects for Performance in Rails by NARKOZ on Sunday July 05, 2015 @10:43AM (#9833713)
There is a gem called eager_group that you might find useful.