🤖 自动格式化代码 [skip ci]

This commit is contained in:
github-actions[bot]
2025-06-22 09:19:09 +00:00
parent 396cb9822b
commit 5757fef0f5
11 changed files with 264 additions and 298 deletions

View File

@@ -72,11 +72,11 @@ os.makedirs(_DB_DIR, exist_ok=True)
db = SqliteDatabase(
_DB_FILE,
pragmas={
'journal_mode': 'wal', # WAL模式提高并发性能
'cache_size': -64 * 1000, # 64MB缓存
'foreign_keys': 1,
'ignore_check_constraints': 0,
'synchronous': 0, # 异步写入提高性能
'busy_timeout': 1000, # 1秒超时而不是3秒
}
"journal_mode": "wal", # WAL模式提高并发性能
"cache_size": -64 * 1000, # 64MB缓存
"foreign_keys": 1,
"ignore_check_constraints": 0,
"synchronous": 0, # 异步写入提高性能
"busy_timeout": 1000, # 1秒超时而不是3秒
},
)