Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Eager Loading (revised)

#22 Eager Loading (revised)

Mar 20, 2013 | 7 minutes | Performance, Active Record
One way to improve performance is to reduce the number of database queries through eager loading. Here I demonstrate this and compare the difference between the "includes" and "joins" methods.