RubyFlow The Ruby and Rails community linklog

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in