The source project of this merge request has been removed.
Fix a badly-performing migration
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?
- Tests
-
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please)
What are the relevant issue numbers?
Closes #24506 (closed)
Introduced by #22699 (closed)