Linux‎ > ‎Ruby & Rails‎ > ‎

Useful Stuff

posted Mar 5, 2015, 11:03 PM by Chris Martin   [ updated Mar 5, 2015, 11:08 PM ]

#include v #eager_load v #preload

Summary

eager_load generates one long query
preload generates two queries
include automatically decides to use either eager_load or preload
Comments