diff options
| author | Dax <[email protected]> | 2026-02-14 14:33:08 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-14 19:33:08 +0000 |
| commit | 67c985ce82b3a0ef3b22bef435f58884a3aab990 (patch) | |
| tree | d8525f40821c394668aaef59462577004b69b35a | |
| parent | 575f2cf2a5e2246175a38dbf96bb1fed33186edc (diff) | |
| download | opencode-67c985ce82b3a0ef3b22bef435f58884a3aab990.tar.gz opencode-67c985ce82b3a0ef3b22bef435f58884a3aab990.zip | |
fix: add WAL checkpoint on database open (#13633)
| -rw-r--r-- | packages/opencode/src/storage/db.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/opencode/src/storage/db.ts b/packages/opencode/src/storage/db.ts index 50aa76384..387e93b37 100644 --- a/packages/opencode/src/storage/db.ts +++ b/packages/opencode/src/storage/db.ts @@ -74,6 +74,7 @@ export namespace Database { sqlite.run("PRAGMA busy_timeout = 5000") sqlite.run("PRAGMA cache_size = -64000") sqlite.run("PRAGMA foreign_keys = ON") + sqlite.run("PRAGMA wal_checkpoint(PASSIVE)") const db = drizzle({ client: sqlite, schema }) |
