Skip to content

Commit 0b0a4e7

Browse files
authored
fix: add WAL checkpoint on database open (anomalyco#13633)
1 parent 6f2ca0a commit 0b0a4e7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • packages/opencode/src/storage

packages/opencode/src/storage/db.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export namespace Database {
7474
sqlite.run("PRAGMA busy_timeout = 5000")
7575
sqlite.run("PRAGMA cache_size = -64000")
7676
sqlite.run("PRAGMA foreign_keys = ON")
77+
sqlite.run("PRAGMA wal_checkpoint(PASSIVE)")
7778

7879
const db = drizzle({ client: sqlite, schema })
7980

0 commit comments

Comments
 (0)