Remove orphaned indices for a namespace
What does this MR do and why?
Remove orphaned indices for a namespace
Ultimately, we plan to use the index state field to filter out orphaned indices, but there is an edge case where the associated enabled namespace has been deleted but the state has not been updated yet. This added filter will protect us from that scenario moving forward.
Query plan before: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/27094/commands/84258
Query plan after: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/27094/commands/84257
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.