From 4b9c4667f64de121201c517f0a91eeec446aeaf3 Mon Sep 17 00:00:00 2001 From: Weves Date: Mon, 18 Mar 2024 12:14:56 -0700 Subject: [PATCH] Increase connection 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 e355084d5..33c951ca8 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) + _SYNC_ENGINE = create_engine(connection_string, pool_size=50, max_overflow=100) return _SYNC_ENGINE