Drop unused indexes on the users table
What does this MR do and why?
This MR drops:
- index_users_require_two_factor_authentication_from_group_false
- index_users_on_require_two_factor_authentication_from_group
as they are not used.
See #429090 (closed) and #429088 (closed).
Rollback
In case we need to recreate these index manually, here are the commands to do it:
create index concurrently "index_users_on_require_two_factor_authentication_from_group" on users(require_two_factor_authentication_from_group) WHERE require_two_factor_authentication_from_group = true;
create index concurrently "index_users_require_two_factor_authentication_from_group_false" on users(require_two_factor_authentication_from_group) WHERE require_two_factor_authentication_from_group = false
It should takes less than 10 minutes in production:
- https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/23775/commands/76276
- https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/23775/commands/76274
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.