Fixed performance
This commit is contained in:
parent
b6a483dc41
commit
1c1ff4d1fb
@ -133,11 +133,11 @@ Status init_binlog(Binlog &binlog, string path, BinlogKeyValue<Binlog> &binlog_p
|
||||
|
||||
Status init_db(SqliteDb &db) {
|
||||
TRY_STATUS(db.exec("PRAGMA encoding=\"UTF-8\""));
|
||||
TRY_STATUS(db.exec("PRAGMA journal_mode=WAL"));
|
||||
TRY_STATUS(db.exec("PRAGMA journal_mode=TRUNCATE"));
|
||||
|
||||
TRY_STATUS(db.exec("PRAGMA synchronous=NORMAL"));
|
||||
TRY_STATUS(db.exec("PRAGMA temp_store=MEMORY"));
|
||||
TRY_STATUS(db.exec("PRAGMA secure_delete=1"));
|
||||
TRY_STATUS(db.exec("PRAGMA secure_delete=0"));
|
||||
|
||||
return Status::OK();
|
||||
}
|
||||
|
Reference in New Issue
Block a user