Use more efficient queries.
This commit is contained in:
parent
14a9dd468b
commit
9cf38d6796
2 changed files with 10 additions and 2 deletions
|
|
@ -0,0 +1,7 @@
|
|||
defmodule Pleroma.Repo.Migrations.AddObjectActivityIndex do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create index(:objects, ["(data->'object'->>'id')", "(data->>'type')"], name: :activities_create_objects_index)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue