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.
显示
- Gemfile 2 个添加, 0 个删除Gemfile
- Gemfile.lock 4 个添加, 0 个删除Gemfile.lock
- app/models/clusters/cluster.rb 1 个添加, 1 个删除app/models/clusters/cluster.rb
- app/models/concerns/issuable.rb 1 个添加, 1 个删除app/models/concerns/issuable.rb
- app/models/concerns/resolvable_discussion.rb 1 个添加, 1 个删除app/models/concerns/resolvable_discussion.rb
- app/models/issue.rb 1 个添加, 1 个删除app/models/issue.rb
- app/models/label.rb 2 个添加, 2 个删除app/models/label.rb
- app/models/project.rb 3 个添加, 3 个删除app/models/project.rb
- app/models/todo.rb 1 个添加, 1 个删除app/models/todo.rb
- app/models/user.rb 3 个添加, 3 个删除app/models/user.rb
- changelogs/unreleased/fix-n-plus-one-when-getting-notification-settings-for-recipients.yml 5 个添加, 0 个删除...one-when-getting-notification-settings-for-recipients.yml
- spec/requests/api/pipeline_schedules_spec.rb 15 个添加, 8 个删除spec/requests/api/pipeline_schedules_spec.rb
加载中
想要评论请 注册 或 登录