Lesson 15← back to roadmap
These are the two maintenance verbs. Schedule them; don't pray for them.
- checkpoint() — writes the current logical state to disk and truncates the WAL
- compact() — rebuilds each collection index from the record store, then checkpoints
Segmented mode writes one fresh segment per collection, rewrites elips.manifest, and removes obsolete segment files. Snapshot mode writes elips.snapshot.tmp, atomic-renames to elips.snapshot, removes segmented artifacts.
python
client.checkpoint() # flush + truncate WAL
client.compact() # rebuild indexes + checkpoint