#[non_exhaustive]pub struct Stats {
pub facts: usize,
pub entities: usize,
pub terms: usize,
pub edges: usize,
pub vectors: usize,
pub next_fact: u32,
pub next_entity: u32,
pub db_uuid: u128,
pub pool_bytes: usize,
}Expand description
Engine size counters. Every field is an O(1) read; the
struct is #[non_exhaustive] so later stages (database identity
markers, HNSW state) can extend it without a breaking change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.facts: usizeFact records currently stored (live, closed, and tombstoned facts
awaiting maintain).
entities: usizeEntities.
terms: usizeInterned terms (tokens, tags, relations, normalized names).
edges: usizeDirected edges (each (src, rel, dst) counted once; the mirrored
in-arena is an internal detail).
vectors: usizeQuantized vector slots.
next_fact: u32The next fact id to be assigned. Ids below it are in use or burned (forgotten and purged) — never reissued.
next_entity: u32The next entity id to be assigned.
db_uuid: u128The database lineage identity (Config::db_uuid); 0 for an
unnamed database.
pool_bytes: usizeTotal bytes held by the engine’s pools (arenas, blob heaps, chunk pools, the term dictionary and the vector pool).