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,
}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.
Trait Implementations§
Source§impl Clone for StatsSummary
impl Clone for StatsSummary
Source§impl Debug for StatsSummary
impl Debug for StatsSummary
impl Eq for StatsSummary
Source§impl PartialEq for StatsSummary
impl PartialEq for StatsSummary
impl StructuralPartialEq for StatsSummary
Auto Trait Implementations§
impl Forget for StatsSummary
impl Freeze for StatsSummary
impl Move for StatsSummary
impl RefUnwindSafe for StatsSummary
impl Send for StatsSummary
impl Sync for StatsSummary
impl Unpin for StatsSummary
impl UnsafeUnpin for StatsSummary
impl UnwindSafe for StatsSummary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more