pub struct Stats {Show 15 fields
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,
pub snapshots_retained: usize,
pub oldest_restorable_at: Option<i64>,
pub snapshot_pinned_bytes: u64,
}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). Since v0.13 a v8 file
opens read-only; mnemo compact converts it to v9.
recall_mode: RecallModeMOBILE-2d: how recall scores vectors on this handle right now.
snapshots_retained: usizeINSP-1 (RB-001.25): the snapshots retained right now, each a
restore point for Mnemo::restore_to. Under churn the pin cap can
keep fewer than the policy’s 16-and-24-hours, so this, not the
policy, is what can be restored.
oldest_restorable_at: Option<i64>When the oldest retained snapshot was committed (unix seconds):
the furthest back a restore reaches. None with no snapshot.
snapshot_pinned_bytes: u64The bytes the retained snapshots keep from reuse (pages freed after
the oldest one). 0 on v8, which never reuses pages.