pub struct Stats {
pub memories: usize,
pub deleted: usize,
pub dimensions: usize,
pub file_bytes: u64,
pub agents: Vec<String>,
pub encrypted: bool,
pub created_at: i64,
pub index: Option<IndexInfo>,
pub wal_pages: u64,
pub fsyncs_last_flush: u32,
pub format_version: u16,
pub recall_mode: RecallMode,
}Expand description
Summary statistics for a database.
Fields§
§memories: usizeLive (non-deleted) memory count.
deleted: usizeTombstoned entries awaiting compaction.
dimensions: usizeEmbedding dimensionality.
file_bytes: u64File size in bytes.
agents: Vec<String>Distinct agent IDs present.
encrypted: boolWhether pages are encrypted (always true in v1).
created_at: i64Creation time (unix seconds).
index: Option<IndexInfo>ANN index shape, if an index has been built.
wal_pages: u64Current size of the write-ahead log region, in 8 KiB pages.
fsyncs_last_flush: u32Fsyncs issued by the most recent successful Mnemo::flush on
this handle. 0 on a fresh handle before any flush, or when
flush() short-circuited (nothing dirty). Phase 6 instrumentation
for the Phase 11.1 write-latency work — the planner wants this
before deciding whether cutting fsync count is a viable
durability-preserving fix.
format_version: u16FMT-9f: the file’s on-disk format (8 or 9). A v8 file still
opens and writes as v8; mnemo compact upgrades it to v9.
recall_mode: RecallModeMOBILE-2d: how recall scores vectors on this handle right now.