Skip to content

Commit cdc4a0d

Browse files
Revert "fix(sqlite): remove WAL pragma (#1280)"
This reverts commit bb96ca3.
1 parent bb96ca3 commit cdc4a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/db/connect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func Connect(ctx context.Context, dataDir string) (*sql.DB, error) {
2323
// Set pragmas for better performance
2424
pragmas := []string{
2525
"PRAGMA foreign_keys = ON;",
26-
"PRAGMA journal_mode = DELETE;",
26+
"PRAGMA journal_mode = WAL;",
2727
"PRAGMA page_size = 4096;",
2828
"PRAGMA cache_size = -8000;",
2929
"PRAGMA synchronous = NORMAL;",

0 commit comments

Comments
 (0)