From: Sadposter Date: Fri, 5 Apr 2019 16:30:54 +0000 (+0100) Subject: Add index on subscribers X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ffac2593eaefeb3000a69f44566dfe5b2a574ae9;p=akkoma Add index on subscribers --- 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