Avoid dying when handling large payloads: the sequel

This commit is contained in:
itepechi 2023-09-09 07:14:38 +09:00
parent a9fe4a9636
commit 00c8a65879

View file

@ -373,7 +373,7 @@ def run(["set_pgroonga_options", pg_options]) do
Ecto.Adapters.SQL.query!(
Pleroma.Repo,
"CREATE INDEX object_content_pgroonga ON objects USING pgroonga ((data->'content')) WITH (#{pg_options});",
"CREATE INDEX object_content_pgroonga ON objects USING pgroonga ((data->'content') pgroonga_jsonb_full_text_search_ops_v2) WITH (#{pg_options});",
[],
timeout: :infinity
)