Add index on inReplyTo for objects
Fixes the performance of `get_existing_votes`
This commit is contained in:
parent
9789e000b0
commit
be56801dda
@ -0,0 +1,7 @@
|
|||||||
|
defmodule Pleroma.Repo.Migrations.AddObjectInReplyToIndex do
|
||||||
|
use Ecto.Migration
|
||||||
|
|
||||||
|
def change do
|
||||||
|
create index(:objects, ["(data->>'inReplyTo')"], name: :objects_in_reply_to_index)
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user