Skip to content

Destroy user associations in batches

What does this MR do?

As we do when destroying projects in https://gitlab.com/gitlab-org/gitlab/blob/master/app/services/projects/destroy_service.rb#L157, the User model is also one entity with a lot of associations, therefore it makes sense to delete them in batches and avoid loading them.

The new functionality is behind the feature flag destroy_user_associations_in_batches

Does this MR meet the acceptance criteria?

Conformity

Merge request reports