mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-22 12:40:09 +08:00
bugfix:修复sqlite部分场景下锁竞争问题;新增插件恶意触发配置文件 (#2144)
* bugfix:修复sqlite部分场景下锁竞争问题;新增插件恶意触发配置文件 * 文件没同步完
This commit is contained in:
@@ -27,7 +27,9 @@ MYSQL_CONFIG = {
|
||||
|
||||
SQLITE_CONFIG = {
|
||||
"journal_mode": "WAL", # 提高并发写入性能
|
||||
"busy_timeout": 30000, # SQLite 锁等待超时,单位毫秒
|
||||
# SQLite 的底层锁等待应接近业务超时,避免上层放弃后 worker 仍长时间占线。
|
||||
# Windows bind mount / Docker 场景下 SQLite 不适合高写并发。
|
||||
"busy_timeout": 5000,
|
||||
"foreign_keys": "ON",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user