You are probably already familiar with the method #includes
for eager loading data from database if you are using Rails and ActiveRecord. But do you know why you someties get few small and nice SQL queries and sometimes one giant query with every table and column renamed? And do you know about #preload
and #eager_load
which can help you achieve the same goal?You are probably already familiar with the method .