From 3172300fd0275d1a878c5ce6d6c8a6c710b4aa45 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 3 Mar 2026 12:36:58 +0000 Subject: [PATCH] fix: increase sync connection pool maxconn 5->20 to prevent pool exhaustion --- backend/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/db.py b/backend/db.py index 90805d6..bb2f3fe 100644 --- a/backend/db.py +++ b/backend/db.py @@ -29,7 +29,7 @@ def get_sync_pool() -> psycopg2.pool.ThreadedConnectionPool: global _sync_pool if _sync_pool is None: _sync_pool = psycopg2.pool.ThreadedConnectionPool( - minconn=1, maxconn=5, + minconn=2, maxconn=20, host=PG_HOST, port=PG_PORT, dbname=PG_DB, user=PG_USER, password=PG_PASS, )