Skip to main content

Module surrogate

Module surrogate 

Source
Expand description

Surrogate โ€” a global, stable, monotonically-allocated u32 row identity.

Every logical row in every engine carries a surrogate. The surrogate is allocated from a WAL-durable, Raft-replicated monotonic counter at insert time and never reused. Cross-engine prefilter and join therefore reduce to roaring-bitmap intersections โ€” no per-query translation between engine-local internal IDs.

This file defines only the value type and its derives. Allocation, persistence, and bootstrap live in nodedb::control::surrogate.

Structsยง

Surrogate
Global surrogate identifier.