perf(db): set the SQLite pragmas from a connect hook and clear WAL sidecars on db reset

This commit is contained in:
jamiepine
2026-10-04 00:00:35 +00:00
committed by capy-ai-staging[bot]
parent 36bb6c1ad7
commit ccc092bad0
3 changed files with 19 additions and 27 deletions
@@ -419,12 +419,14 @@ bun run tauri build
```bash
# macOS
rm ~/Library/Application\ Support/sh.voicebox.app/data/voicebox.db
rm ~/Library/Application\ Support/sh.voicebox.app/data/voicebox.db*
# Windows
del %APPDATA%\sh.voicebox.app\data\voicebox.db
del %APPDATA%\sh.voicebox.app\data\voicebox.db*
```
The wildcard also removes the `voicebox.db-wal` and `voicebox.db-shm` sidecar files that SQLite keeps next to the database in WAL mode, so the reset starts completely clean.
Restart the app to create a fresh database.
## Model Issues