Increase connection pool size

This commit is contained in:
Weves 2024-03-18 12:14:56 -07:00 committed by Chris Weaver
parent 8e89d00e32
commit 4b9c4667f6

View File

@ -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