Fixed performance

This commit is contained in:
Andrea 2019-09-28 23:41:57 +02:00
parent b6a483dc41
commit 1c1ff4d1fb

View File

@ -133,11 +133,11 @@ Status init_binlog(Binlog &binlog, string path, BinlogKeyValue<Binlog> &binlog_p
Status init_db(SqliteDb &db) { Status init_db(SqliteDb &db) {
TRY_STATUS(db.exec("PRAGMA encoding=\"UTF-8\"")); 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 synchronous=NORMAL"));
TRY_STATUS(db.exec("PRAGMA temp_store=MEMORY")); 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(); return Status::OK();
} }