feat: 调整 nltk 的初始化时机
This commit is contained in:
@@ -22,7 +22,8 @@ async_engine = AsyncEngine(create_engine(
|
||||
pool_size=5, # 连接池保持的连接数
|
||||
max_overflow=10, # 允许超过pool_size的最大连接数
|
||||
pool_timeout=30, # 获取连接的超时时间(秒)
|
||||
pool_recycle=300, # 连接回收时间(秒)
|
||||
pool_recycle=180, # 连接回收时间(秒)
|
||||
pool_pre_ping=True, # 启用连接有效性检测
|
||||
echo=True, # 启用SQL语句日志输出,便于开发调试
|
||||
future=True, # 启用SQLAlchemy 2.0风格的未来模式API
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user