From bc86f8bb5fe32a65af2123fe19b559069637578b Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sun, 11 Dec 2022 20:25:15 +0800 Subject: [PATCH] Reset busy_timeout to default --- server/database.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/database.js b/server/database.js index 8bcce24f..2544f197 100644 --- a/server/database.js +++ b/server/database.js @@ -152,9 +152,6 @@ class Database { await R.exec("PRAGMA cache_size = -12000"); await R.exec("PRAGMA auto_vacuum = FULL"); - // Avoid error "SQLITE_BUSY: database is locked" by allowing SQLITE to wait up to 5 seconds to do a write - await R.exec("PRAGMA busy_timeout = 5000"); - // This ensures that an operating system crash or power failure will not corrupt the database. // FULL synchronous is very safe, but it is also slower. // Read more: https://sqlite.org/pragma.html#pragma_synchronous