-
- Downloads
There was an error fetching the commit references. Please try again later.
Makes LFS object linker process OIDs in batches
During a project import, `LfsLinkService` attempts to link `LfsObjects` that have not already been associated with a project. It's possible for a large repo to have thousands of OIDs, which can cause long database query and parsing times. By processing a batch of 1000 at a time, we can reduce that time at the expense of a few more SQL queries. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66274
Showing
- app/models/lfs_object.rb 1 addition, 0 deletionsapp/models/lfs_object.rb
- app/services/projects/lfs_pointers/lfs_link_service.rb 24 additions, 5 deletionsapp/services/projects/lfs_pointers/lfs_link_service.rb
- changelogs/unreleased/sh-lfs-object-batches.yml 5 additions, 0 deletionschangelogs/unreleased/sh-lfs-object-batches.yml
- spec/services/projects/lfs_pointers/lfs_link_service_spec.rb 18 additions, 0 deletionsspec/services/projects/lfs_pointers/lfs_link_service_spec.rb
Please register or sign in to comment