Skip to content

Update data in batches while deleting a user

What does this MR do and why?

When user got deleted we assign plenty of stuff to a ghost user. User MRs, issues, notes etc etc. For pretty active users UPDATE query can timeout, so we do update in batches now.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #337336 (closed)

Merge request reports