3 ways to do eager loading (preloading) in Rails 3, 4, 5 and 6 … and check why 5600+ Rails engineers read also this 3 ways to do eager loading (preloading) in Rails 3, 4, 5 and 6 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 o
![→ Eager Loading (preloading) - 3 ways to do it in Rails 3, 4, 5 and 6](https://cdn-ak-scissors.b.st-hatena.com/image/square/b57d378de032fe6acfd4f3c96f775f0732bcb46a/height=288;version=1;width=512/https%3A%2F%2Fblog-arkency.imgix.net%2Fpreloading%2Fheader.png%3Fw%3D768%26h%3D758%26fit%3Dmax)