Kukei.eu/inspire:

Two ways for testing preloading/eager-loading of ActiveRecord associations in Rails | Arkency Blog

As a developer who cares about performance you know to avoid N+1 queries by using #includes, #preload or #eager_load methods . But is there a way of checking out that you are doing your job correctly and making sure that the associations you expect to be preloaded are indeed? How can you test it? T…

https://blog.arkency.com/two-ways-for-testing-preloading-eager-loading-of-activerecord-association-in-rails

Two ways for testing preloading/eager-loading of ActiveRecord associations in Rails

Arkency Blog