ActiveRecordのjoinsとpreloadとincludesとeager_loadの違い - Qiita

ActiveRecordでN+1クエリを潰すためにeager loadingを行う場合、`preload`や`includes`や`eager_load`が役に立つ。 [Preload, Eagerload, Includes and...