Use Goldiloader for handling N+1 queries
Goldiloader (https://github.com/salsify/goldiloader) can eager load associations automatically. This removes the need for adding "includes" calls in a variety of different places. This also comes with the added benefit of not having to eager load data if it's not used.
Showing
... | ... | @@ -455,3 +455,5 @@ gem 'grape_logging', '~> 1.7' |
# Asset synchronization | ||
gem 'asset_sync', '~> 2.2.0' | ||
gem 'goldiloader', '~> 2.0' |
Please register or sign in to comment