You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
index_project uses per-file transactions. Each file = 1 DELETE + N INSERT + COMMIT. 100 files = 100 fsync operations.
Location
src/index/mod.rs:222-258 -- for entry in walker { index_file() } calls conn.unchecked_transaction() per file.
Solution
Wrap the entire indexing loop in a single transaction. Use conn.unchecked_transaction() around the full index_project_with_id function body, and remove per-file transactions from index_file().
Expected Impact
2-3x faster indexing (eliminates ~100 fsyncs per project).
Activity
perf: Phase 1 + Search + Indexing — 1.8x cold index, 52x incremental,…
ajianaz commentedon Jul 28, 2026
Resolved by PR #421. PRAGMA journal_mode=WAL, synchronous=NORMAL, cache_size=-64000 applied during indexing.
chore: v0.9.0 release prep (#423)
chore: sync v0.9.0 release prep to develop (#424)
chore: sync v0.9.0 release prep to develop (#424) (#425)
release: v0.10.0 (#442)
release: v0.11.1 → main (#450)