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.
Using window functions (partition) to eager_load “most recent post/comment” for a collection.