-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Description
1Panel Version
2.0.13
Please describe your needs or suggestions for improvements
数据库用了错误的参数配置导致并发容易死锁并且产生不必要的开销
- 第一行,最大 idle 周期被改成了 10ns,导致连接闲置就被立刻关闭
- 第二行对于 sqlite 文件数据库,增大max连接只会导致并发时更多的操作句柄抢锁,反而拉低了性能。建议设置为 1 即可
- 仍然使用默认的 delete 模式,小业务应该尝试WAL 模式来增大性能 ref: https://sqlite.org/wal.html
性能调整参考:
https://github.com/glebarez/sqlite/issues/52
https://github.com/mattn/go-sqlite3
Please describe the solution you suggest
No response
Additional Information
No response
maninhill
