From d226c52630459d000a4b945d33b19342e7c0cfa6 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 2 Mar 2020 17:56:00 -0500 Subject: [PATCH] Enable memory mapped IO --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 7a9a1c6..2e62f74 100644 --- a/index.js +++ b/index.js @@ -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", "*");