Skip to main content

Module segment

Module segment 

Source
Expand description

Vector segment payloads in node-id order, and the check that a stored segment serves the nodes of the index it is attached to.

A segment backs a graph-only checkpoint positionally: slot i holds the vector of node i. The payload is therefore laid out in node-id order, and each slot’s surrogate records the document bound to that node as a [doc_fingerprint]. On load, [segment_serves_index] compares those fingerprints with the id map, so a segment written for another node order is refused and the index is rebuilt from the durable rows.