Skip to content

Fix a badly-performing migration

Nick Thomas requested to merge (removed):24506-fix-timing-out-migration into master

What does this MR do?

Replace a complex UPDATE ... SELECT with a simpler SELECT ; UPDATE. Mea culpa. Introduced in https://gitlab.com/gitlab-org/gitlab-ce/issues/22699

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

The existing SQL isn't performant.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #24506 (closed)

Introduced by #22699 (closed)

Merge request reports