-
- Downloads
Batch load only data from same repository when lazy object is accessed
By specifying `key`, we get a different lazy batch loader for each repository, which means that accessing a lazy object from one repository will only result in that repository's objects being fetched, not those of other repositories, saving us some unnecessary Gitaly lookups.
Showing
- app/graphql/resolvers/full_path_resolver.rb 4 additions, 3 deletionsapp/graphql/resolvers/full_path_resolver.rb
- app/graphql/resolvers/merge_request_resolver.rb 4 additions, 3 deletionsapp/graphql/resolvers/merge_request_resolver.rb
- app/models/blob.rb 3 additions, 9 deletionsapp/models/blob.rb
- changelogs/unreleased/dm-batch-loader-key.yml 5 additions, 0 deletionschangelogs/unreleased/dm-batch-loader-key.yml
- lib/gitlab/git/commit.rb 6 additions, 22 deletionslib/gitlab/git/commit.rb
- lib/gitlab/git/tag.rb 3 additions, 11 deletionslib/gitlab/git/tag.rb
- spec/lib/gitlab/git/commit_spec.rb 6 additions, 0 deletionsspec/lib/gitlab/git/commit_spec.rb
- spec/lib/gitlab/git/tag_spec.rb 3 additions, 0 deletionsspec/lib/gitlab/git/tag_spec.rb
- spec/models/blob_spec.rb 15 additions, 6 deletionsspec/models/blob_spec.rb
Please register or sign in to comment