diff --git a/include/database/db_common.hpp b/include/database/db_common.hpp index 3701d2c4..df483874 100644 --- a/include/database/db_common.hpp +++ b/include/database/db_common.hpp @@ -221,7 +221,8 @@ public: }; inline void set_journal_mode(sqlite3 &db3) { - sqlite3_exec(&db3, "PRAGMA journal_mode = WAL;", nullptr, nullptr, nullptr); + sqlite3_exec(&db3, "PRAGMA journal_mode = WAL;PRAGMA synchronous = NORMAL;", + nullptr, nullptr, nullptr); } [[nodiscard]] inline auto execute_sql(sqlite3 &db3, const std::string &sql,