Enable memory mapped IO

This commit is contained in:
Ajay Ramachandran
2020-03-02 17:56:00 -05:00
parent 744538eec6
commit d226c52630

View File

@@ -49,6 +49,9 @@ if (!config.readOnly && config.mode === "production") {
db.exec("PRAGMA wal_autocheckpoint=1;");
}
// Enable Memory-Mapped IO
db.exec("pragma mmap_size= 500000000;");
//setup CORS correctly
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");