3 ways to do eager loading (preloading) in Rails 3 

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 .


3 ways to do eager loading (preloading) in Rails 3  #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/3-ways-to-do-eager-loading-preloading-in-rails-3

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles