diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-02-13 18:04:40 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-02-13 18:04:40 +0000 |
commit | 2fcc1f7e9eeb1cadbc264f4ae731f317f7581bc1 (patch) | |
tree | 123225da2325e11313cf0de1df69e531fe543e32 /db/migrate | |
parent | 79d68383030f8aa7c97d3df53ae90137383eb0cd (diff) | |
parent | 97739f15c73064ad56312f2cdc35a417985b6de4 (diff) | |
download | gitlab-ce-2fcc1f7e9eeb1cadbc264f4ae731f317f7581bc1.tar.gz |
Merge branch 'sh-add-labels-index' into 'master'
Add indices to improve loading of labels page
Closes #25413
See merge request !9121
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170210062829_add_index_to_labels_for_title_and_project.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20170210062829_add_index_to_labels_for_title_and_project.rb b/db/migrate/20170210062829_add_index_to_labels_for_title_and_project.rb new file mode 100644 index 00000000000..f922ed209aa --- /dev/null +++ b/db/migrate/20170210062829_add_index_to_labels_for_title_and_project.rb @@ -0,0 +1,12 @@ +class AddIndexToLabelsForTitleAndProject < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def change + add_concurrent_index :labels, :title + add_concurrent_index :labels, :project_id + end +end |