feat: sqlite模式改为wal支持并发写入临时日志
This commit is contained in:
9
build/database/lite/install/ainstall.sql
Normal file
9
build/database/lite/install/ainstall.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
-- ----------------------------
|
||||
-- Configuration
|
||||
-- ----------------------------
|
||||
|
||||
-- 启用完整的自动空间回收
|
||||
PRAGMA auto_vacuum = FULL;
|
||||
-- 日志模式设置为 WAL 并发写入
|
||||
PRAGMA journal_mode = WAL;
|
||||
PRAGMA synchronous = NORMAL;
|
||||
Reference in New Issue
Block a user