From 91e806a619e8bf00ca1f8b7228c2f1f963b6c29d Mon Sep 17 00:00:00 2001 From: lyswhut Date: Fri, 2 May 2025 18:27:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E6=95=B0=E6=8D=AE=E5=BA=93=E5=90=AF?= =?UTF-8?q?=E7=94=A8=20WAL=20=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/worker/dbService/db.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/worker/dbService/db.ts b/src/main/worker/dbService/db.ts index 0a0725f5..e13fda27 100644 --- a/src/main/worker/dbService/db.ts +++ b/src/main/worker/dbService/db.ts @@ -36,6 +36,7 @@ export const init = (lxDataPath: string): boolean | null => { initTables(db) dbFileExists = false } + db.pragma('journal_mode = WAL') if (dbFileExists) migrateData(db)