From: Mark Felder <feld@FreeBSD.org>
Date: Thu, 20 Feb 2020 21:34:10 +0000 (-0600)
Subject: Apply database session parameter to improve GIN full text search
X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b6bb73f43e31cc252dd3c64a85edd9650ebbf87c;p=akkoma

Apply database session parameter to improve GIN full text search
---

diff --git a/config/config.exs b/config/config.exs
index 0eff26653..641b2c867 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -617,6 +617,8 @@ config :pleroma, :modules, runtime_dir: "instance/modules"
 
 config :pleroma, configurable_from_database: false
 
+config :pleroma, Pleroma.Repo, parameters: [gin_fuzzy_search_limit: "500"]
+
 # Import environment specific config. This must remain at the bottom
 # of this file so it overrides the configuration defined above.
 import_config "#{Mix.env()}.exs"