Rails Fundamentals: Include vs Joins
A fundamental Active Record feature known as eager loading regularly trips up new Rails developers to the detriment of their application’s performance. In this post I offer a concrete example illustrating the difference between the includes
and joins
approaches, complete with a log of the queries executed when each approach is implemented.
Post a comment