Commit f5fbcdac authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch '331829-remove-notes-trigram-index' into 'master'

Remove trigram index on notes

See merge request gitlab-org/gitlab!71982
parents 6de18f01 2a6c75fa
# frozen_string_literal: true
class RemoveNotesTrigramIndex < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
NOTES_TRIGRAM_INDEX_NAME = 'index_notes_on_note_trigram'
def up
remove_concurrent_index_by_name(:notes, NOTES_TRIGRAM_INDEX_NAME)
end
def down
add_concurrent_index :notes, :note, name: NOTES_TRIGRAM_INDEX_NAME, using: :gin, opclass: { content: :gin_trgm_ops }
end
end
166ae24ae4856488c81a71c650dca038c8cd7cb2221545e84431e118da097688
\ No newline at end of file
......@@ -26577,8 +26577,6 @@ CREATE INDEX index_notes_on_discussion_id ON notes USING btree (discussion_id);
CREATE INDEX index_notes_on_line_code ON notes USING btree (line_code);
CREATE INDEX index_notes_on_note_trigram ON notes USING gin (note gin_trgm_ops);
CREATE INDEX index_notes_on_noteable_id_and_noteable_type_and_system ON notes USING btree (noteable_id, noteable_type, system);
CREATE INDEX index_notes_on_project_id_and_id_and_system_false ON notes USING btree (project_id, id) WHERE (NOT system);
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