Merged in journal_mode_off_is_stupid (pull request #107)

Switch journal mode to WAL instead of OFF because off is stupid
This commit is contained in:
Eric Harding authored and Pedro Pinto committed 2018-11-19 22:19:36 +00:00
commit 1895a75bc7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ sqlite3_ptr open_db() {
auto dbptr = utils::open_db(db_path.c_str());
auto db = dbptr.get();
sqlite3_busy_timeout(db, 9999);
sqlite3_exec_nofail(db, "PRAGMA journal_mode=OFF");
sqlite3_exec_nofail(db, "PRAGMA journal_mode=WAL");
sqlite3_exec_nofail(db, "PRAGMA syncronous=0");
sqlite3_exec_nofail(db,
+1 -1
View File
@@ -97,7 +97,7 @@ SettlementRecorder::SettlementRecorder(Platform platform) :
_self->db = open_db(db_path.c_str());
sqlite3* db = _self->db.get();
sqlite3_busy_timeout(db, 9999);
sqlite3_exec_nofail(db, "PRAGMA journal_mode=OFF");
sqlite3_exec_nofail(db, "PRAGMA journal_mode=WAL");
sqlite3_exec_nofail(db, "PRAGMA syncronous=0");
// key=(security_key+date)
sqlite3_exec_nofail(db,