ActiveRecord Eager Loading with Query Objects and Decorators
http://robots.thoughtbot.com/active-record-eager-loading-with-query-objects-and-decorators
interesting use of window functions and POROs to clean up n+1 queries
Related Bookmarks
- Advanced Eager Loading in Rails - Kevin Sylvestre
- 3 ActiveRecord Mistakes That Slow Down Rails Apps: Count, Where and Present
- 3 ways to do eager loading (preloading) in Rails 3 & 4 - Arkency Blog
- Ruby on Rails Scope patterns and activerecord naming conventions
- Talk at PDX.rb in May 2015 about SQL tricks in Rails