Commit b0b0cec7 authored by Andreas Brandl's avatar Andreas Brandl

Merge branch 'remove-index-on-issues-relative-position' into 'master'

Remove index on issues.relative_position

See merge request gitlab-org/gitlab!43991
parents 97661e6c 20686f75
---
title: Remove index on issues.relative_position
merge_request: 43991
author:
type: performance
# frozen_string_literal: true
class RemoveIndexOnIssuesRelativePosition < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
INDEX_NAME = 'index_issues_on_relative_position'
DOWNTIME = false
disable_ddl_transaction!
def up
remove_concurrent_index_by_name(:issues, INDEX_NAME)
end
def down
add_concurrent_index(:issues, :relative_position, name: INDEX_NAME)
end
end
f3f9dd503d2c2695d5cd32ea87ff11e45832b1650df3186c7f71c984fc59ad24
\ No newline at end of file
...@@ -20501,8 +20501,6 @@ CREATE UNIQUE INDEX index_issues_on_project_id_and_iid ON issues USING btree (pr ...@@ -20501,8 +20501,6 @@ CREATE UNIQUE INDEX index_issues_on_project_id_and_iid ON issues USING btree (pr
CREATE INDEX index_issues_on_promoted_to_epic_id ON issues USING btree (promoted_to_epic_id) WHERE (promoted_to_epic_id IS NOT NULL); CREATE INDEX index_issues_on_promoted_to_epic_id ON issues USING btree (promoted_to_epic_id) WHERE (promoted_to_epic_id IS NOT NULL);
CREATE INDEX index_issues_on_relative_position ON issues USING btree (relative_position);
CREATE INDEX index_issues_on_sprint_id ON issues USING btree (sprint_id); CREATE INDEX index_issues_on_sprint_id ON issues USING btree (sprint_id);
CREATE INDEX index_issues_on_title_trigram ON issues USING gin (title gin_trgm_ops); CREATE INDEX index_issues_on_title_trigram ON issues USING gin (title gin_trgm_ops);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment