|
|
@ -57,9 +57,9 @@ class Settings(BaseSettings): |
|
|
|
"password": "#@$3cJ?*=&981+--.$%^bnoZT12QfK", |
|
|
|
"password": "#@$3cJ?*=&981+--.$%^bnoZT12QfK", |
|
|
|
"database": "bd_ai_fastapi", |
|
|
|
"database": "bd_ai_fastapi", |
|
|
|
}, |
|
|
|
}, |
|
|
|
"pool_size": 20, # 增加连接池大小 |
|
|
|
"pool_size": 10, # 增加连接池大小 |
|
|
|
"max_overflow": 10, # 允许临时超过连接池大小的连接数 |
|
|
|
"max_overflow": 20, # 允许临时超过连接池大小的连接数 |
|
|
|
"pool_recycle": 300 # 连接回收时间(秒) |
|
|
|
"pool_recycle": 100 # 连接回收时间(秒) |
|
|
|
}, |
|
|
|
}, |
|
|
|
# PostgreSQL configuration |
|
|
|
# PostgreSQL configuration |
|
|
|
# Install with: tortoise-orm[asyncpg] |
|
|
|
# Install with: tortoise-orm[asyncpg] |
|
|
|