Advanced Eager Loading in Rails - Kevin Sylvestre
https://ksylvest.com/posts/2014-12-20/advanced-eager-loading-in-rails
Using window functions (partition) to eager_load “most recent post/comment” for a collection.
Related Bookmarks
- 3 ways to do eager loading (preloading) in Rails 3 & 4 - Arkency Blog
- ActiveRecord Eager Loading with Query Objects and Decorators
- Fetching the top n per group with a lateral join with rails
- 3 ActiveRecord Mistakes That Slow Down Rails Apps: Count, Where and Present
- Thread safety for your Rails - (m.onkey.org)