From 04ae8b1bf9d8abb276cce3b8c53738bdc685fb7a Mon Sep 17 00:00:00 2001 From: Weves Date: Mon, 18 Mar 2024 12:18:54 -0700 Subject: [PATCH] Increase SQLAlchemy pool size --- backend/danswer/db/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/danswer/db/engine.py b/backend/danswer/db/engine.py index 33c951ca8..146f11ef8 100644 --- a/backend/danswer/db/engine.py +++ b/backend/danswer/db/engine.py @@ -57,7 +57,7 @@ def get_sqlalchemy_engine() -> Engine: global _SYNC_ENGINE if _SYNC_ENGINE is None: connection_string = build_connection_string(db_api=SYNC_DB_API) - _SYNC_ENGINE = create_engine(connection_string, pool_size=50, max_overflow=100) + _SYNC_ENGINE = create_engine(connection_string, pool_size=50, max_overflow=25) return _SYNC_ENGINE