Now sets the journal mode to wal

This commit is contained in:
Ajay Ramachandran 2020-01-23 15:02:55 -05:00
parent ca5890e6e3
commit 938cff5381

View file

@ -40,8 +40,9 @@ var adminUserID = config.adminUserID;
var behindProxy = config.behindProxy;
// Enable WAL mode checkpoint number
if (!config.readOnly) {
db.get("PRAGMA wal_autocheckpoint=1");
if (!config.readOnly && config.mode === "production") {
db.get("PRAGMA journal_mode=WAL;");
db.get("PRAGMA wal_autocheckpoint=1;");
}
//setup CORS correctly