aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadposter <hannah+pleroma@coffee-and-dreams.uk>2019-04-05 17:30:54 +0100
committerSadposter <hannah+pleroma@coffee-and-dreams.uk>2019-04-05 17:30:54 +0100
commitffac2593eaefeb3000a69f44566dfe5b2a574ae9 (patch)
tree9471754832b419792ea3348d4851169899cc1c89
parenta270e7a1915c0d36004e16fc9a166a42ea3eff8a (diff)
downloadpleroma-ffac2593eaefeb3000a69f44566dfe5b2a574ae9.tar.gz
Add index on subscribers
-rw-r--r--priv/repo/migrations/20190405160700_add_index_on_subscribers.exs8
1 files changed, 8 insertions, 0 deletions
diff --git a/priv/repo/migrations/20190405160700_add_index_on_subscribers.exs b/priv/repo/migrations/20190405160700_add_index_on_subscribers.exs
new file mode 100644
index 000000000..232f75c92
--- /dev/null
+++ b/priv/repo/migrations/20190405160700_add_index_on_subscribers.exs
@@ -0,0 +1,8 @@
+defmodule Pleroma.Repo.Migrations.AddIndexOnSubscribers do
+ use Ecto.Migration
+
+ @disable_ddl_transaction true
+ def change do
+ create index(:users, ["(info->'subscribers')"], name: :users_subscribers_index, using: :gin, concurrently: true)
+ end
+end