We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b9a9129 + 7b05ed8 commit eccda20Copy full SHA for eccda20
base/database/storage/sqlite/sqlite.go
@@ -80,6 +80,7 @@ func openSQLite(name, location string, printStmts bool) (*SQLite, error) {
80
"PRAGMA journal_mode=WAL;", // Corruption safe write ahead log for txs.
81
"PRAGMA synchronous=NORMAL;", // Best for WAL.
82
"PRAGMA cache_size=-10000;", // 10MB Cache.
83
+ "PRAGMA busy_timeout=3000;", // 3s (3000ms) timeout for locked tables.
84
}
85
for _, pragma := range pragmas {
86
_, err := db.Exec(pragma)
0 commit comments