Notes: the list store's write-ahead log shrinks back #382

Closed
kayg wants to merge 0 commits from issue/44-meta-wal into dev
Owner

Part of #44. Based on dev, independent, one line.

On the perf VM, after a cold fill and a few harness storms, a 100,000-note Home kept a 127 MB meta.db-wal next to its 240 MB list store. SQLite leaves the write-ahead log at the size of the biggest transaction it ever held. The big ones are a cold fill's 4,096-note batches, and with #372 the final index build.

PRAGMA journal_size_limit = 8388608 on the list store's connection cuts the log back to 8 MB whenever a checkpoint resets it. The search index already does the same (crates/search/src/index.rs).

cargo test -p calternal-notes (169) is clean.

🤖 Generated with Claude Code

Part of #44. Based on dev, independent, one line. On the perf VM, after a cold fill and a few harness storms, a 100,000-note Home kept a **127 MB `meta.db-wal`** next to its 240 MB list store. SQLite leaves the write-ahead log at the size of the biggest transaction it ever held. The big ones are a cold fill's 4,096-note batches, and with #372 the final index build. `PRAGMA journal_size_limit = 8388608` on the list store's connection cuts the log back to 8 MB whenever a checkpoint resets it. The search index already does the same (`crates/search/src/index.rs`). `cargo test -p calternal-notes` (169) is clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Notes: the list store's write-ahead log shrinks back
Some checks failed
CI / server (pull_request) Successful in 21s
CI / rust (pull_request) Successful in 1m52s
CI / web (pull_request) Failing after 38m9s
53d881de9b
SQLite leaves a write-ahead log at the size of the biggest transaction it
ever held: on the perf VM a 100,000-note Home kept a 127 MB meta.db-wal
beside its 240 MB list store, after a cold fill and a few storms. With
journal_size_limit it's cut back to 8 MB whenever a checkpoint resets
it. (#44)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Merged into dev via train j (#391).

Merged into dev via train j (#391).
kayg closed this pull request 2026-10-15 02:23:01 +00:00
Some checks failed
CI / server (pull_request) Successful in 21s
CI / rust (pull_request) Successful in 1m52s
CI / web (pull_request) Failing after 38m9s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!382
No description provided.