feat: 配置文件新增数据库连接池相关配置

This commit is contained in:
insistence
2024-04-23 09:04:49 +08:00
parent e774e1b26b
commit 816793b888
4 changed files with 26 additions and 1 deletions

View File

@@ -42,6 +42,14 @@ DB_PASSWORD = 'root'
DB_DATABASE = 'ruoyi-fastapi'
# 是否开启sqlalchemy日志
DB_ECHO = true
# 允许溢出连接池大小的最大连接数
DB_MAX_OVERFLOW = 10
# 连接池大小0表示连接数无限制
DB_POOL_SIZE = 50
# 连接回收时间(单位:秒)
DB_POOL_RECYCLE = 3600
# 连接池中没有线程可用时,最多等待的时间(单位:秒)
DB_POOL_TIMEOUT = 30
# -------- Redis配置 --------
# Redis主机