Skip to content

Commit 67c985c

Browse files
authored
fix: add WAL checkpoint on database open (#13633)
1 parent 575f2cf commit 67c985c

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)