summaryrefslogtreecommitdiff
path: root/db/schema.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-04-18 20:00:35 -0700
committerStan Hu <stanhu@gmail.com>2017-04-19 06:45:01 -0700
commit3f0054a88c84ef5631ee82c1cc9bc985c2eea58b (patch)
tree0464eb8ec25de8420f23d3669c66ddfdeb3260e1 /db/schema.rb
parenta9da37434af6d44c5f851affd4bd69b370760e8e (diff)
downloadgitlab-ce-3f0054a88c84ef5631ee82c1cc9bc985c2eea58b.tar.gz
Add unique index for note_id to system note metadata tablesh-add-index-to-system-note-metadata
In issue 1, the sequential scan was taking 250+ ms.
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb
index 26ec6367bd0..e84fd90a4cd 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20170418103908) do
+ActiveRecord::Schema.define(version: 20170419001229) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -1140,6 +1140,8 @@ ActiveRecord::Schema.define(version: 20170418103908) do
t.datetime "updated_at", null: false
end
+ add_index "system_note_metadata", ["note_id"], name: "index_system_note_metadata_on_note_id", unique: true, using: :btree
+
create_table "taggings", force: :cascade do |t|
t.integer "tag_id"
t.integer "taggable_id"