updateupda
This commit is contained in:
parent
f3975c0feb
commit
a81aca9e0c
@ -21,8 +21,7 @@ engine = create_engine(
|
||||
pool_recycle=3600, # 连接回收时间(1小时)
|
||||
pool_size=10, # 连接池大小
|
||||
max_overflow=20, # 允许的最大连接数超出pool_size的数量
|
||||
pool_timeout=30, # 获取连接的超时时间(秒)
|
||||
echo=settings.DEBUG, # 在调试模式下打印SQL语句
|
||||
pool_timeout=30 # 获取连接的超时时间(秒
|
||||
)
|
||||
|
||||
# 创建线程安全的会话工厂
|
||||
|
||||
Loading…
Reference in New Issue
Block a user