Skip to main content

Module config

Module config 

Source
Expand description

Engine configuration.

Every knob that changes how bytes are interpreted lives here, because the config is persisted inside the snapshot: opening an existing database with an incompatible config (different dim, different shard counts) is a typed error, not a silent reinterpretation.

Structs§

Config
Full engine configuration with the defaults.

Constants§

ENCODED_LEN
Exact byte length of the encoded config block (see Config::encode).
MAX_HNSW_DEGREE
Largest neighbour degree the vector graph accepts.
MAX_SHARDS
Largest shard count any arena may be configured with.
MIN_SHARDS
Fewest shards any arena gets.
PAGES_PER_SHARD
Pages per shard the engine aims for.
RESERVED_AT
Byte offset of the reserved zero tail (directly after db_uuid).
SHARD_TARGET_BYTES
Payload bytes one shard is meant to hold: PAGES_PER_SHARD pages.