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_SHARDpages.