Class: Gitlab::BackgroundMigration::CleanupOrphanedLfsObjectsProjects

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/background_migration/cleanup_orphaned_lfs_objects_projects.rb

Overview

The migration is used to cleanup orphaned lfs_objects_projects in order to introduce valid foreign keys to this table

Defined Under Namespace

Classes: LfsObject, LfsObjectsProject, Project

Constant Summary collapse

SUB_BATCH_SIZE =
5000
CLEAR_CACHE_DELAY =
1.minute

Instance Method Summary collapse

Instance Method Details

#perform(start_id, end_id) ⇒ Object


31
32
33
34
# File 'lib/gitlab/background_migration/cleanup_orphaned_lfs_objects_projects.rb', line 31

def perform(start_id, end_id)
  cleanup_lfs_objects_projects_without_lfs_object(start_id, end_id)
  cleanup_lfs_objects_projects_without_project(start_id, end_id)
end