Merge pull request #61 from ajayyy/experimental

Enable memory mapped IO
This commit is contained in:
Ajay Ramachandran
2020-03-02 17:57:27 -05:00
committed by GitHub

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", "*");