Expand description
§Index Compactor
HNSW indexes accumulate deleted vectors over time that waste memory and degrade query performance. This module identifies fragmented indexes and coordinates rebuilds based on configurable compaction policies.
§Overview
CompactionPolicy— configures when compaction should be triggeredIndexFragmentStats— captures fragmentation metrics for a single indexIndexCompactor— analyzes indexes and producesCompactionPlansCompactionPlan— describes the planned compaction and its expected impactCompactorStats— atomic counters tracking compactor activity
Structs§
- Compaction
Plan - A concrete recommendation to compact an index, including estimated impact.
- Compaction
Policy - Configures the triggers that cause
IndexCompactorto recommend a compaction. - Compactor
Stats - Thread-safe counters tracking compactor activity.
- Compactor
Stats Snapshot - A snapshot of
CompactorStatscounters taken at a point in time. - Index
Compactor - Analyses HNSW index fragmentation and recommends compaction plans.
- Index
Fragment Stats - Statistics describing the fragmentation state of a single HNSW index.
Enums§
- Compaction
Priority - How urgently a compaction should be scheduled.
- Compaction
Reason - The primary reason a compaction was recommended.