diff options
author | Stan Hu <stanhu@gmail.com> | 2017-02-12 19:56:25 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-02-13 08:53:44 -0800 |
commit | 97739f15c73064ad56312f2cdc35a417985b6de4 (patch) | |
tree | 0f33c7ec2d10a4209ffbcfd4f98889deb47b6fdb /db/schema.rb | |
parent | edb8ed36cd5ce315ca45a047bd06ab1dfcf44203 (diff) | |
download | gitlab-ce-97739f15c73064ad56312f2cdc35a417985b6de4.tar.gz |
Add indices to improve loading of labels pagesh-add-labels-index
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/schema.rb b/db/schema.rb index d71911eaf14..feeea55ce9b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -581,6 +581,8 @@ ActiveRecord::Schema.define(version: 20170210075922) do add_index "labels", ["group_id", "project_id", "title"], name: "index_labels_on_group_id_and_project_id_and_title", unique: true, using: :btree add_index "labels", ["type", "project_id"], name: "index_labels_on_type_and_project_id", using: :btree + add_index "labels", ["project_id"], name: "index_labels_on_project_id", using: :btree + add_index "labels", ["title"], name: "index_labels_on_title", using: :btree create_table "lfs_objects", force: :cascade do |t| t.string "oid", null: false |