Problem
SQLite is opened with only journal_mode=WAL; foreign_keys=ON. Missing key throughput PRAGMAs.
Location
src/index/mod.rs:35-36 and src/engine/db_writer.rs:184-185
Solution
Add to open_global_index():
PRAGMA synchronous = NORMAL;
PRAGMA cache_size = -64000;
PRAGMA mmap_size = 268435456;
PRAGMA temp_store = MEMORY;
Expected Impact
1.2-1.5x overall. Trivial change, zero risk.
Problem
SQLite is opened with only
journal_mode=WAL; foreign_keys=ON. Missing key throughput PRAGMAs.Location
src/index/mod.rs:35-36andsrc/engine/db_writer.rs:184-185Solution
Add to
open_global_index():Expected Impact
1.2-1.5x overall. Trivial change, zero risk.