Skip to content

Reverse lock order for removing FK

Nicolas Dular requested to merge nd/reverse-lock-on-epic-fk-removal into master

What does this MR do and why?

Reverse lock order for removing FK

To reduce the chance of deadlocks when removing the FK we're reversing the order in which we lock the tables. Starting with the higher traffic table (issues) first.

See more details why it's necessary on: !143844 (comment 1892430313)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Nicolas Dular

Merge request reports