forked from AkkomaGang/akkoma
Added index on [:target_id, :relationship_type] to :user_relationships (speeds up Notification.exclude_blockers/_
).
This commit is contained in:
parent
a61ed5c488
commit
0c7fb520bf
1 changed files with 9 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
|||
defmodule Pleroma.Repo.Migrations.UserRelationshipsTargetIdRelationshipTypeIndex do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create_if_not_exists(
|
||||
index(:user_relationships, [:target_id, :relationship_type])
|
||||
)
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue