Linux‎ > ‎Ruby & Rails‎ > ‎

Useful Stuff

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

#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