From c5c43c85d3c8ca8cf158f20a2433984872e54ce4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 5 Aug 2021 14:48:23 +0200 Subject: Use sqlite in WAL mode. --- server.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server.js') diff --git a/server.js b/server.js index 5e90135..0835b34 100644 --- a/server.js +++ b/server.js @@ -20,6 +20,8 @@ const MAX_OPEN_GAMES = 5; let session_store = new SQLiteStore(); let db = new sqlite3(process.env.DATABASE || "./db"); +db.pragma("journal_mode = WAL"); +db.pragma("synchronous = NORMAL"); let app = express(); let server = null; -- cgit v1.2.3