In addition to preloading associations using separate queries, you can also preload associations using a single query that JOINs all of the related tables.
You need to be careful doing this, as preloading unrelated associations this way can cause large cartesian products to be created.