summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-08-05 14:48:23 +0200
committerTor Andersson <tor@ccxvii.net>2021-08-05 16:03:39 +0200
commitc5c43c85d3c8ca8cf158f20a2433984872e54ce4 (patch)
treecbe363bafcba6057181329f2436bdb5414813c39 /server.js
parentdc7bc039757225106a7087821dc96d4ac3abe284 (diff)
downloadserver-c5c43c85d3c8ca8cf158f20a2433984872e54ce4.tar.gz
Use sqlite in WAL mode.
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 2 insertions, 0 deletions
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;