Expand description
Per-array SchemaDoc registry with durable cold-start snapshots.
Each registered array has one Loro-backed SchemaDoc that tracks the
array’s schema and its Hlc version. Snapshots are persisted under
Namespace::Meta keys of the form b"array.schema_doc:{name}" so the
registry can be reconstructed after process restart without a full sync.
§Storage format
Each key maps to a MessagePack-encoded [PersistedSchema] tuple:
(replica_id: u64, schema_hlc_bytes: [u8; 18], loro_snapshot: Vec<u8>).
§Cold-start scan
SchemaRegistry::load reads every key under the prefix
b"array.schema_doc:" with one prefix scan.
Structs§
- Schema
Registry - Per-array
SchemaDocregistry.