This commit is contained in:
parent
6802731507
commit
199315327b
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue