pleroma/test
Lain Soykaf fa8541309c
fix(search): set gin_fuzzy_search_limit only for search queries
The limit was a connection parameter, so it applied to every GIN index
scan, not only full-text search: recipient lookups and Oban job queries
could return incomplete, random results. Set it with SET LOCAL around
the search query only, configurable under Pleroma.Search.DatabaseSearch.

The default stays 500 for search: measured on a 74M-object database,
higher limits or none make searches for common words exceed the query
timeout. Remote fetches for URL queries run outside the transaction.

Based on Akkoma 811f0a468.

Co-authored-by: Oneric <oneric@oneric.stub>
2026-10-29 11:26:02 +04:00
..
config
credo/check/consistency
fixtures fix(fetcher): require fetched documents to have the fetched id 2026-10-27 21:58:41 +04:00
instance_static
mix
pleroma fix(search): set gin_fuzzy_search_limit only for search queries 2026-10-29 11:26:02 +04:00
support fix(fetcher): require fetched documents to have the fetched id 2026-10-27 21:58:41 +04:00
test_helper.exs