Add async foreign key validation model
What does this MR do and why?
Related to #390651 (closed)
For partitioning the ci_builds
table we will have to update all foreign key relations to include the partitioning key and validate the new FKs. The validation will take a few good hours for each FK and needs to be executed during low traffic hours because it blocks the vacuum process, which could lead to slow queries across the CI domain. This MR adds the table that will act as a queue to hold the FKs that need to be validated, similar to async indexes.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.