Saturday, August 26, 2017

Eager Loading Polymorphic Associations with Ruby on Rails



Efficiently eager loading polymorphic associations to avoid the 'n-plus-one' queries can be a challenge. Consider the following example: Attempting to eager load the authors or directors for the books or films is slightly more challenging.

No comments:

Fun With Haxl (Part 1)

This is a blog-post version of a talk I recently gave at the Haskell eXchange 2015. The video of the talk is here, but there were a lot of...