-
- Downloads
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
- Gemfile 2 additions, 0 deletionsGemfile
- Gemfile.lock 4 additions, 0 deletionsGemfile.lock
- app/models/clusters/cluster.rb 1 addition, 1 deletionapp/models/clusters/cluster.rb
- app/models/concerns/issuable.rb 1 addition, 1 deletionapp/models/concerns/issuable.rb
- app/models/concerns/resolvable_discussion.rb 1 addition, 1 deletionapp/models/concerns/resolvable_discussion.rb
- app/models/issue.rb 1 addition, 1 deletionapp/models/issue.rb
- app/models/label.rb 2 additions, 2 deletionsapp/models/label.rb
- app/models/project.rb 3 additions, 3 deletionsapp/models/project.rb
- app/models/todo.rb 1 addition, 1 deletionapp/models/todo.rb
- app/models/user.rb 3 additions, 3 deletionsapp/models/user.rb
- changelogs/unreleased/fix-n-plus-one-when-getting-notification-settings-for-recipients.yml 5 additions, 0 deletions...one-when-getting-notification-settings-for-recipients.yml
- spec/requests/api/pipeline_schedules_spec.rb 15 additions, 8 deletionsspec/requests/api/pipeline_schedules_spec.rb
Loading
| Loading
| @@ -441,3 +441,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