diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-08-05 14:48:23 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-08-05 16:03:39 +0200 |
commit | c5c43c85d3c8ca8cf158f20a2433984872e54ce4 (patch) | |
tree | cbe363bafcba6057181329f2436bdb5414813c39 /server.js | |
parent | dc7bc039757225106a7087821dc96d4ac3abe284 (diff) | |
download | server-c5c43c85d3c8ca8cf158f20a2433984872e54ce4.tar.gz |
Use sqlite in WAL mode.
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |