Switch to associated_object_id index
This commit is contained in:
parent
06678fb4ad
commit
3885ee182a
8 changed files with 50 additions and 20 deletions
|
|
@ -40,8 +40,7 @@ defmodule Pleroma.Object do
|
|||
join(query, join_type, [{object, object_position}], a in Activity,
|
||||
on:
|
||||
fragment(
|
||||
"COALESCE(?->'object'->>'id', ?->>'object') = (? ->> 'id') AND (?->>'type' = ?) ",
|
||||
a.data,
|
||||
"associated_object_id(?) = (? ->> 'id') AND (?->>'type' = ?) ",
|
||||
a.data,
|
||||
object.data,
|
||||
a.data,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue