diff --git a/src/claimtrie/trie.cpp b/src/claimtrie/trie.cpp index 6a62cfdee..1cd5c9ee1 100644 --- a/src/claimtrie/trie.cpp +++ b/src/claimtrie/trie.cpp @@ -41,7 +41,7 @@ void applyPragmas(sqlite::database& db, std::size_t cache) { db << "PRAGMA cache_size=-" + std::to_string(cache); // in -KB db << "PRAGMA synchronous=OFF"; // don't disk sync after transaction commit - db << "PRAGMA journal_mode=MEMORY"; + db << "PRAGMA journal_mode=WAL"; db << "PRAGMA temp_store=MEMORY"; db << "PRAGMA case_sensitive_like=true"; diff --git a/src/txdb.cpp b/src/txdb.cpp index 05f78b929..4b01efe9b 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -6,8 +6,10 @@ #include #include +#include #include #include +#include