Skip to content
Snippets Groups Projects
Commit e93ab0cd authored by Diogo Frazão's avatar Diogo Frazão :palm_tree:
Browse files

Remove `index_on_projects_path` index

Remove duplicated index.

Relates to: !135366
Changelog: performance
parent 651e6a01
No related branches found
No related tags found
1 merge request!135366Resolve "Remove tenant_scale duplicated indexes - projects table"
# frozen_string_literal: true
class RemoveProjectsDuplicatedIndexes < Gitlab::Database::Migration[2.2]
disable_ddl_transaction!
milestone '16.6'
INDEX_NAME = :index_on_projects_path
TABLE_NAME = :projects
def up
remove_concurrent_index_by_name TABLE_NAME, INDEX_NAME
end
def down
add_concurrent_index TABLE_NAME, :path, name: INDEX_NAME
end
end
ce4863f02f807498da9c3cf7b49d85a2e5a296903fe0673bfa6f40d50c8a51b5
\ No newline at end of file
......@@ -33587,8 +33587,6 @@ CREATE UNIQUE INDEX index_on_project_id_escalation_policy_name_unique ON inciden
 
CREATE INDEX index_on_projects_lower_path ON projects USING btree (lower((path)::text));
 
CREATE INDEX index_on_projects_path ON projects USING btree (path);
CREATE INDEX index_on_routes_lower_path ON routes USING btree (lower((path)::text));
 
CREATE INDEX index_on_sbom_sources_package_manager_name ON sbom_sources USING btree ((((source -> 'package_manager'::text) ->> 'name'::text)));
......@@ -167,11 +167,6 @@ project_repositories:
project_topics:
index_project_topics_on_project_id_and_topic_id:
- index_project_topics_on_project_id
projects:
index_projects_api_path_id_desc:
- index_on_projects_path
index_projects_on_path_and_id:
- index_on_projects_path
protected_environments:
index_protected_environments_on_project_id_and_name:
- index_protected_environments_on_project_id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment