mirror of
https://github.com/open-webui/open-webui.git
synced 2026-04-26 01:25:34 +02:00
Change default db pooling
This commit is contained in:
@@ -94,10 +94,14 @@ else:
|
||||
pool_pre_ping=True,
|
||||
poolclass=QueuePool,
|
||||
)
|
||||
else:
|
||||
elif DATABASE_POOL_SIZE == 0:
|
||||
engine = create_engine(
|
||||
SQLALCHEMY_DATABASE_URL, pool_pre_ping=True, poolclass=NullPool
|
||||
)
|
||||
else:
|
||||
engine = create_engine(
|
||||
SQLALCHEMY_DATABASE_URL, pool_pre_ping=True
|
||||
)
|
||||
|
||||
|
||||
SessionLocal = sessionmaker(
|
||||
|
||||
Reference in New Issue
Block a user