-
- Downloads
Cache branch and tag names as Redis sets
This allows us to check inclusion for the *_exists? methods without downloading the full list of branch names, which is over 100KiB in size for gitlab-ce at the moment.
Showing
- app/models/repository.rb 8 additions, 4 deletionsapp/models/repository.rb
- changelogs/unreleased/64251-branch-name-set-cache.yml 5 additions, 0 deletionschangelogs/unreleased/64251-branch-name-set-cache.yml
- lib/gitlab/repository_cache_adapter.rb 53 additions, 0 deletionslib/gitlab/repository_cache_adapter.rb
- lib/gitlab/repository_set_cache.rb 67 additions, 0 deletionslib/gitlab/repository_set_cache.rb
- spec/lib/gitlab/repository_cache_adapter_spec.rb 5 additions, 2 deletionsspec/lib/gitlab/repository_cache_adapter_spec.rb
- spec/lib/gitlab/repository_set_cache_spec.rb 73 additions, 0 deletionsspec/lib/gitlab/repository_set_cache_spec.rb
- spec/models/repository_spec.rb 41 additions, 11 deletionsspec/models/repository_spec.rb
lib/gitlab/repository_set_cache.rb
0 → 100644
spec/lib/gitlab/repository_set_cache_spec.rb
0 → 100644
-
mentioned in issue #13567 (closed)
-
mentioned in issue hustewart/plan#151 (closed)
Please register or sign in to comment