pub struct CollectionStat {
pub name: String,
pub collection_id: u32,
pub type_version: u32,
pub doc_count: u64,
pub total_payload_bytes: u64,
pub active_index_count: usize,
pub dropped_index_count: usize,
}Expand description
Per-collection summary inside DbStat.
doc_count and total_payload_bytes are computed by walking
the collection’s primary B-tree once; the cost is O(n) in the
number of documents in the collection. obj stat calls
Db::stat once per --collection invocation; tools that
need realtime telemetry should NOT use this surface.
Fields§
§name: StringUser-visible name.
collection_id: u32Catalog-assigned numeric id.
type_version: u32Document::VERSION of the type that last wrote to the
collection.
doc_count: u64Number of documents in the primary B-tree.
total_payload_bytes: u64Approximate total payload bytes — sum of every doc header’s
payload_len. Does NOT include the 16-byte per-doc header
itself; per docs/format.md the in-file footprint is
payload_len + DOC_HEADER_SIZE per doc, plus B+tree
per-page overhead.
active_index_count: usizeNumber of Active secondary indexes. DroppedPending
descriptors are NOT counted.
dropped_index_count: usizeNumber of DroppedPending index descriptors (kept so the
index_id is never reused; pages reclaimed on the next
checkpoint).
Trait Implementations§
Source§impl Clone for CollectionStat
impl Clone for CollectionStat
Source§fn clone(&self) -> CollectionStat
fn clone(&self) -> CollectionStat
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more