RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: performance xRevised Episodes xActive Record x
Eager Loading (revised)
Episode #22Mar 20, 2013223 comments

Eager Loading (revised)

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. (7 minutes)