pub struct StatsSummary {
pub memories: usize,
pub deleted: usize,
pub dimensions: usize,
pub file_bytes: u64,
pub format_version: u16,
pub wal_pages: u64,
pub has_index: bool,
pub recall_mode: RecallMode,
pub vector_column_bytes: u64,
pub snapshots_retained: usize,
pub oldest_restorable_at: Option<i64>,
pub snapshot_pinned_bytes: u64,
}Expand description
Mnemo::stats_summary: the cheap statistics, read from the catalog and
the header (v0.12.2, RB-002.3).
Fields§
§memories: usizeLive (non-deleted) memory count.
deleted: usizeTombstoned entries awaiting compaction.
dimensions: usizeEmbedding dimensionality.
file_bytes: u64File size in bytes.
format_version: u16The on-disk format, 8 or 9.
wal_pages: u64Current size of the write-ahead log region, in 8 KiB pages.
has_index: boolWhether an IVF+PQ index exists (loaded, or persisted in the file).
recall_mode: RecallModeHow recall scores vectors right now.
vector_column_bytes: u64The bytes the v9 vector column needs to stay in memory: the live
facts × (2 × dimensions + 4). Recall is ExactResident while the
vector cache budget is at least this; 0 on v8, which has no column.
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.