Author:
Source
Sponsored:
Working in Public: The Making and Maintenance of Open Source Software - Audiobook

Unlock the Digital Creator Code!
It might happen that your initial array of objects is not an ActiveRecord Relation.
You cannot use preload on an array of objects and therefore you suffer of N+1 queries.
Here is a smart way to solve the problem!
You cannot use preload on an array of objects and therefore you suffer of N+1 queries.
Here is a smart way to solve the problem!
