mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-19 14:09:06 +03:00
Enable memory mapped IO
This commit is contained in:
3
index.js
3
index.js
@@ -49,6 +49,9 @@ if (!config.readOnly && config.mode === "production") {
|
|||||||
db.exec("PRAGMA wal_autocheckpoint=1;");
|
db.exec("PRAGMA wal_autocheckpoint=1;");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable Memory-Mapped IO
|
||||||
|
db.exec("pragma mmap_size= 500000000;");
|
||||||
|
|
||||||
//setup CORS correctly
|
//setup CORS correctly
|
||||||
app.use(function(req, res, next) {
|
app.use(function(req, res, next) {
|
||||||
res.header("Access-Control-Allow-Origin", "*");
|
res.header("Access-Control-Allow-Origin", "*");
|
||||||
|
|||||||
Reference in New Issue
Block a user