Commit a14e3f0c authored by actb's avatar actb

dbOptimize set WAL mode

parent 30633619
......@@ -11,7 +11,7 @@ function optimize(dbFile,bQuiet=false)
var cmd;
cmd='PRAGMA optimize';
lDB.exec(cmd,function(){
cmd='PRAGMA wal_checkpoint(full)';
cmd='PRAGMA journal_mode=WAL;PRAGMA wal_checkpoint(full)';
lDB.exec(cmd,function(){
lDB.close(function (error) {
if (null!=error)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment