From a1f4240f60b05fab7deb8a476def61f546aa0739 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 16 Jun 2023 01:09:44 +0200 Subject: Activate sqlite WAL --- database/db.js | 1 + 1 file changed, 1 insertion(+) diff --git a/database/db.js b/database/db.js index 0fdbcfe..4855233 100644 --- a/database/db.js +++ b/database/db.js @@ -13,6 +13,7 @@ const db = new Database( process.env.NODE_ENV === 'development' ? { verbose: console.log } : null ); db.pragma('foreign_keys = ON'); +db.pragma('journal_mode = WAL'); db.transaction(function migrate() { let version; -- cgit v1.2.3