This commit is contained in:
Heyang Zhou 2024-05-30 13:49:10 +08:00 committed by GitHub
commit f165aba547
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,9 @@ const cls = require('./cls.js');
const fs = require("fs-extra");
const dbConnection = new Database(dataDir.DOCUMENT_PATH);
dbConnection.pragma('journal_mode = WAL');
if (process.env.TRILIUM_DB_DISABLE_WAL !== "1") {
dbConnection.pragma('journal_mode = WAL');
}
const LOG_ALL_QUERIES = false;