From 037be680608d3d60a657761087792c43098c2c2d Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 15 Jul 2019 14:07:34 -0500 Subject: [PATCH] ignore `tsv` column & add index to local-scope posts --- app/models/status.rb | 1 - db/schema.rb | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/models/status.rb b/app/models/status.rb index 8315491f7..e9aa55eab 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -23,7 +23,6 @@ # in_reply_to_account_id :bigint(8) # local_only :boolean # poll_id :bigint(8) -# tsv :tsvector # curated :boolean default(FALSE), not null # sharekey :string # network :boolean default(FALSE), not null diff --git a/db/schema.rb b/db/schema.rb index 2ccbf9e9f..5d86405d4 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_05_21_003909) do +ActiveRecord::Schema.define(version: 2019_07_14_172721) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -658,7 +658,6 @@ ActiveRecord::Schema.define(version: 2019_05_21_003909) do t.bigint "in_reply_to_account_id" t.boolean "local_only" t.bigint "poll_id" - t.tsvector "tsv" t.boolean "curated", default: false, null: false t.string "sharekey" t.boolean "network", default: false, null: false @@ -668,12 +667,12 @@ ActiveRecord::Schema.define(version: 2019_05_21_003909) do t.boolean "imported" t.string "origin" t.index ["account_id", "id", "visibility", "updated_at"], name: "index_statuses_20180106", order: { id: :desc } + t.index ["account_id", "id", "visibility"], name: "index_statuses_on_account_id_and_id_and_visibility", where: "(visibility = ANY (ARRAY[0, 1, 2, 4, 5]))" t.index ["in_reply_to_account_id"], name: "index_statuses_on_in_reply_to_account_id" t.index ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id" t.index ["network"], name: "index_statuses_on_network", where: "network" t.index ["origin"], name: "index_statuses_on_origin", unique: true t.index ["reblog_of_id", "account_id"], name: "index_statuses_on_reblog_of_id_and_account_id" - t.index ["tsv"], name: "tsv_idx", using: :gin t.index ["uri"], name: "index_statuses_on_uri", unique: true end