on main help sign in
Revert "fix(sqlite): remove WAL pragma" (#1393)
47212faKujtim Hoxha
internal/db/connect.go+1−1
@@ -23,7 +23,7 @@ func Connect(ctx context.Context, dataDir string) (*sql.DB, error) {
23 // Set pragmas for better performance
23 // Set pragmas for better performance
24 pragmas := []string{
24 pragmas := []string{
25 "PRAGMA foreign_keys = ON;",
25 "PRAGMA foreign_keys = ON;",
26− "PRAGMA journal_mode = DELETE;",
26+ "PRAGMA journal_mode = WAL;",
27 "PRAGMA page_size = 4096;",
27 "PRAGMA page_size = 4096;",
28 "PRAGMA cache_size = -8000;",
28 "PRAGMA cache_size = -8000;",
29 "PRAGMA synchronous = NORMAL;",
29 "PRAGMA synchronous = NORMAL;",