Drop an unused index for GitLab.com
What does this MR do and why?
Drops the index index_namespaces_on_created_at
which is not used on GitLab.com.
As the index may be used on self-managed instances that use the instance wide (admin) list of namespaces, we remove it only for GitLab.com to help with the LWLock saturation issues we are having.
See #425974 (closed).
Revert
In case we find we need to quickly restore this index for GitLab.com, we can do this with the following commands executed on the primary:
CREATE INDEX CONCURRENTLY index_namespaces_on_created_at ON namespaces USING btree (created_at);
This takes < 5 minutes
on DBL - https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/23477/commands/75447.
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.
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.
Related to #425974 (closed)