Added index on [:target_id, :relationship_type] to :user_relationships (speeds up Notification.exclude_blockers/_
).
This commit is contained in:
parent
a61ed5c488
commit
0c7fb520bf
@ -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 New Issue
Block a user