Commit 3bd17e2e authored by Gosia Ksionek's avatar Gosia Ksionek Committed by Tiger Watson

Add changelog entry

Fix schema file
parent d56da39b
---
title: Add index to issues and epics on last_edited_by_id
merge_request: 33075
author:
type: performance
# frozen_string_literal: true
class AddIssuesLastEditedByIdIndex < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index :issues, :last_edited_by_id
add_concurrent_index :epics, :last_edited_by_id
end
def down
remove_concurrent_index :issues, :last_edited_by_id
remove_concurrent_index :epics, :last_edited_by_id
end
end
...@@ -9642,6 +9642,8 @@ CREATE INDEX index_epics_on_group_id_and_iid_varchar_pattern ON public.epics USI ...@@ -9642,6 +9642,8 @@ CREATE INDEX index_epics_on_group_id_and_iid_varchar_pattern ON public.epics USI
CREATE INDEX index_epics_on_iid ON public.epics USING btree (iid); CREATE INDEX index_epics_on_iid ON public.epics USING btree (iid);
CREATE INDEX index_epics_on_last_edited_by_id ON public.epics USING btree (last_edited_by_id);
CREATE INDEX index_epics_on_lock_version ON public.epics USING btree (lock_version) WHERE (lock_version IS NULL); CREATE INDEX index_epics_on_lock_version ON public.epics USING btree (lock_version) WHERE (lock_version IS NULL);
CREATE INDEX index_epics_on_parent_id ON public.epics USING btree (parent_id); CREATE INDEX index_epics_on_parent_id ON public.epics USING btree (parent_id);
...@@ -9876,6 +9878,8 @@ CREATE INDEX index_issues_on_description_trigram ON public.issues USING gin (des ...@@ -9876,6 +9878,8 @@ CREATE INDEX index_issues_on_description_trigram ON public.issues USING gin (des
CREATE INDEX index_issues_on_duplicated_to_id ON public.issues USING btree (duplicated_to_id) WHERE (duplicated_to_id IS NOT NULL); CREATE INDEX index_issues_on_duplicated_to_id ON public.issues USING btree (duplicated_to_id) WHERE (duplicated_to_id IS NOT NULL);
CREATE INDEX index_issues_on_last_edited_by_id ON public.issues USING btree (last_edited_by_id);
CREATE INDEX index_issues_on_lock_version ON public.issues USING btree (lock_version) WHERE (lock_version IS NULL); CREATE INDEX index_issues_on_lock_version ON public.issues USING btree (lock_version) WHERE (lock_version IS NULL);
CREATE INDEX index_issues_on_milestone_id ON public.issues USING btree (milestone_id); CREATE INDEX index_issues_on_milestone_id ON public.issues USING btree (milestone_id);
...@@ -13959,6 +13963,7 @@ COPY "schema_migrations" (version) FROM STDIN; ...@@ -13959,6 +13963,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200525114553 20200525114553
20200525121014 20200525121014
20200526120714 20200526120714
20200526153844
20200526164946 20200526164946
20200526164947 20200526164947
20200527094322 20200527094322
......
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