Added indexes and mmap to the private db

This commit is contained in:
Ajay Ramachandran
2020-03-04 15:17:50 -05:00
parent d226c52630
commit dd2a8b682c
3 changed files with 6 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ if (!config.readOnly && config.mode === "production") {
// Enable Memory-Mapped IO
db.exec("pragma mmap_size= 500000000;");
privateDB.exec("pragma mmap_size= 500000000;");
//setup CORS correctly
app.use(function(req, res, next) {