3 ms·
Easy to Overlook Way to Break Eager Loading in Rails Apps
- dorianmariefr 4y agoI would recommend not using `includes` but using `joins`, `eager_load`, or `preload` depending on what you want to do. It's more explicit.
- pawurb 4y agoIn most cases includes gets the job done, but I agree that sometimes explicitly choosing the eager loading method is needed.