mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-25 04:53:06 +00:00
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 a new issue