ITZMA is still taking shape, and its API can change between releases. Version 0.2.1: serde_with security fix
Docs / Reference

Storage layout and formats

The objects a namespace writes under its prefix, and their binary formats.

On this page

Objects

text
<namespace>/
  schema.json                         dimension, metric, attribute types; written once
  manifest/current.json               live segments, fold point, indexes, format levels
  wal/00000000000000000001.json       one object per batch (binary despite the name)
  segments/<lo>-<hi>/data.bin         a segment, named by the WAL range it covers
  segments/<lo>-<hi>/index-<n>.bin    its dense index (HNSW or SQ8), generation n
  segments/<lo>-<hi>/sparse.bin       its sparse vectors, only if a document has one
  segments/<lo>-<hi>/sparse-idx-<n>.bin its sparse inverted index, generation n
  segments/<lo>-<hi>/generation       the highest index generation ever used
  gc/fenced-through                   a hint for gc, only with fence_wal

Formats

schema.json and the manifest are JSON. Everything else is binary and starts with a four-byte magic:

ObjectMagicVersions
WAL batchITZW2, or 3 with an idempotency key; 4 and 5 add a sparse column; ZSTD-compressed when smaller
WAL fenceITZF4
SegmentITZS, ending ITZE2 (block-addressable, Bloom filter); 3 adds typed attribute columns and zone maps
Sparse vectors (sparse.bin)ITZS1
IndexITZI1, kind 1 (SQ8) or 2 (HNSW)
Sparse indexITZP1

A reader that meets a version or kind it does not know refuses it instead of guessing; a segment whose index kind is unknown is scanned flat.

Docs
esc

Loading the docs…