From 9f9c1007d7f80c963ac1b0746a5dd765f81703ef Mon Sep 17 00:00:00 2001 From: LouisLam Date: Thu, 9 Sep 2021 11:56:42 +0800 Subject: [PATCH] increase sqlite cache size from 2MB to 12MB --- server/database.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/database.js b/server/database.js index 832166d2c..b76b38713 100644 --- a/server/database.js +++ b/server/database.js @@ -36,7 +36,11 @@ class Database { // Change to WAL await R.exec("PRAGMA journal_mode = WAL"); + await R.exec("PRAGMA cache_size = -12000"); + + console.log("SQLite config:"); console.log(await R.getAll("PRAGMA journal_mode")); + console.log(await R.getAll("PRAGMA cache_size")); } static async patch() {