Added WAL mode checkpoint number

This commit is contained in:
Ajay Ramachandran
2020-01-23 15:00:20 -05:00
parent b5e569a80d
commit ca5890e6e3

View File

@@ -39,6 +39,11 @@ var adminUserID = config.adminUserID;
//if so, it will use the x-forwarded header instead of the ip address of the connection
var behindProxy = config.behindProxy;
// Enable WAL mode checkpoint number
if (!config.readOnly) {
db.get("PRAGMA wal_autocheckpoint=1");
}
//setup CORS correctly
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");