Add index on subscribers

This commit is contained in:
Sadposter 2019-04-05 17:30:54 +01:00
parent a270e7a191
commit ffac2593ea
No known key found for this signature in database
GPG key ID: 6F3BAD60DE190290

View file

@ -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