🤖 自动格式化代码 [skip ci]
This commit is contained in:
@@ -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秒
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user