diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-08-20 01:17:28 +1200 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-08-29 12:37:15 +1200 |
commit | 1dec74808cca3d78c904f645659384b525c72337 (patch) | |
tree | bff482016e6a3aebe8300f6105c9229d0e3ec6bc /db/schema.rb | |
parent | b34120336d33e57d9817559f82771f8da4f5f2b3 (diff) | |
download | gitlab-ce-1dec74808cca3d78c904f645659384b525c72337.tar.gz |
Add index to improve query performance
For Environment.deployed_to_cluster
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/schema.rb b/db/schema.rb index 454ea939a6f..14029486dfe 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1146,6 +1146,7 @@ ActiveRecord::Schema.define(version: 2019_08_28_083843) do t.integer "status", limit: 2, null: false t.datetime_with_timezone "finished_at" t.integer "cluster_id" + t.index ["cluster_id", "status"], name: "index_deployments_on_cluster_id_and_status" t.index ["cluster_id"], name: "index_deployments_on_cluster_id" t.index ["created_at"], name: "index_deployments_on_created_at" t.index ["deployable_type", "deployable_id"], name: "index_deployments_on_deployable_type_and_deployable_id" |