diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2019-08-16 20:02:19 +0000 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-08-16 20:02:19 +0000 |
commit | 504ed1c4a44f3b86ce2ce1a545236c8c0f84c17f (patch) | |
tree | ceff26a333dfa7c4c8481781adbc4190143909d6 /db/schema.rb | |
parent | b0a230daedd99b5a7b41ddf544c66a6ed57adefc (diff) | |
parent | a3e716104a3d1189de8a22a8a3ea9a67d66baea2 (diff) | |
download | gitlab-ce-504ed1c4a44f3b86ce2ce1a545236c8c0f84c17f.tar.gz |
Merge branch 'optimize-note-indexes' into 'master'
Optimize DB indexes for ES indexing of notes
See merge request gitlab-org/gitlab-ce!31846
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/schema.rb b/db/schema.rb index cf7f0fc0a3d..fafaec3fb51 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2019_08_12_070645) do +ActiveRecord::Schema.define(version: 2019_08_15_093949) do # These are extensions that must be enabled in order to support this database enable_extension "pg_trgm" @@ -2279,7 +2279,7 @@ ActiveRecord::Schema.define(version: 2019_08_12_070645) do t.index ["line_code"], name: "index_notes_on_line_code" t.index ["note"], name: "index_notes_on_note_trigram", opclass: :gin_trgm_ops, using: :gin t.index ["noteable_id", "noteable_type"], name: "index_notes_on_noteable_id_and_noteable_type" - t.index ["noteable_type"], name: "index_notes_on_noteable_type" + t.index ["project_id", "id"], name: "index_notes_on_project_id_and_id_and_system_false", where: "(NOT system)" t.index ["project_id", "noteable_type"], name: "index_notes_on_project_id_and_noteable_type" t.index ["review_id"], name: "index_notes_on_review_id" end |