This commit is contained in:
MarkLo127 2026-03-11 19:40:54 +08:00
parent 6802731507
commit 199315327b
1 changed files with 3 additions and 2 deletions

View File

@ -30,8 +30,9 @@ if DATABASE_URL:
DATABASE_URL, DATABASE_URL,
echo=False, # Set to True for SQL debugging echo=False, # Set to True for SQL debugging
pool_pre_ping=True, pool_pre_ping=True,
pool_size=5, pool_size=20,
max_overflow=10, max_overflow=20,
pool_recycle=3600,
) )
AsyncSessionLocal = async_sessionmaker( AsyncSessionLocal = async_sessionmaker(