Skip to content

Commit 8305567

Browse files
committed
db.d: reduce busy_timeout to 5 seconds
Feels like a better balance between allowing write operations to complete vs not waiting too long on a database that an external application has locked for editing.
1 parent a205734 commit 8305567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ final class Database
115115
query("PRAGMA synchronous = NORMAL;");
116116
query("PRAGMA foreign_keys = ON;");
117117
query("PRAGMA secure_delete = ON;");
118-
query("PRAGMA busy_timeout = 10000;"); // 10 seconds
118+
query("PRAGMA busy_timeout = 5000;"); // 5 seconds
119119

120120
if (log_db) check_integrity();
121121

0 commit comments

Comments
 (0)