pleroma/config
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
..
benchmark.exs Use config to control streamer registry 2024-01-20 18:51:20 -05:00
config.exs fix(search): set gin_fuzzy_search_limit only for search queries 2026-10-29 11:26:02 +04:00
description.exs fix(search): set gin_fuzzy_search_limit only for search queries 2026-10-29 11:26:02 +04:00
dev.exs Elixir 1.19: Move default configs to the new Logger configuration, again 2026-03-25 19:35:46 +00:00
docker.exs allow custom db port 2022-11-11 12:22:21 -03:00
dokku.exs Switch from the deprecated "use Mix.config" to "import Config" 2021-05-20 14:02:58 -05:00
emoji.txt Load an emoji.txt specific to the test env 2021-02-03 16:40:59 -06:00
prod.exs Elixir 1.19: Move default configs to the new Logger configuration, again 2026-03-25 19:35:46 +00:00
test.exs Elixir 1.19: Disable colors for logging in test env 2026-03-25 19:35:46 +00:00