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:

How to build a Hugo website in AWS Lambda and deploy it to S3

This tutorial explains how to run Hugo in AWS Lambda and deploy a static website to Amazon S3. Running Hugo in AWS Lambda can be useful if...