From 6b3a341977907abf27b9d4da20dfd29cbfba62db Mon Sep 17 00:00:00 2001 From: yangdx Date: Mon, 22 Sep 2025 18:11:28 +0800 Subject: [PATCH] Increase default PostgreSQL max connections from 20 to 50 --- lightrag/kg/postgres_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/kg/postgres_impl.py b/lightrag/kg/postgres_impl.py index 1e96d978..2394ecb4 100644 --- a/lightrag/kg/postgres_impl.py +++ b/lightrag/kg/postgres_impl.py @@ -1323,7 +1323,7 @@ class ClientManager: ), "max_connections": os.environ.get( "POSTGRES_MAX_CONNECTIONS", - config.get("postgres", "max_connections", fallback=20), + config.get("postgres", "max_connections", fallback=50), ), # SSL configuration "ssl_mode": os.environ.get(