mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-09 12:30:49 +02:00
Increase SQLAlchemy pool size
This commit is contained in:
parent
4b9c4667f6
commit
04ae8b1bf9
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user