pub struct BatchApplyStats {Show 14 fields
pub input_mutations: usize,
pub effective_mutations: usize,
pub preprocess_input_sorted: bool,
pub affected_leaves: usize,
pub changed_leaves: usize,
pub sparse_leaf_applies: usize,
pub written_nodes: usize,
pub written_bytes: usize,
pub used_append_fast_path: bool,
pub used_batched_route: bool,
pub used_coalesced_rebuild: bool,
pub used_deferred_rebalancing: bool,
pub used_bottom_up_rebuild: bool,
pub cache_written_nodes: bool,
}Expand description
Store-neutral execution stats for a batch mutation.
These counters describe tree work and write amplification before any storage-engine-specific buffering, compaction, or object layout effects.
Fields§
§input_mutations: usizeNumber of mutations supplied by the caller before preprocessing.
effective_mutations: usizeNumber of mutations left after sort/deduplication preprocessing.
preprocess_input_sorted: boolWhether the input mutation keys were already sorted before preprocessing.
affected_leaves: usizeNumber of distinct leaf groups planned for this batch.
changed_leaves: usizeNumber of affected leaves whose contents actually changed.
sparse_leaf_applies: usizeNumber of leaf groups applied with sparse binary-search mutation.
written_nodes: usizeUnique content-addressed nodes written by the batch collector.
written_bytes: usizeTotal serialized bytes for unique nodes written by the batch collector.
used_append_fast_path: boolWhether the append-only right-edge fast path completed the batch.
used_batched_route: boolWhether planning used the batched read routing path.
used_coalesced_rebuild: boolWhether the multi-leaf coalesced rebuild path was used.
used_deferred_rebalancing: boolWhether the deferred single-leaf/group rebalance path was used.
used_bottom_up_rebuild: boolWhether the configured bottom-up rebuild path was used.
cache_written_nodes: boolWhether newly written nodes were retained in the in-process node cache.
Trait Implementations§
Source§impl Clone for BatchApplyStats
impl Clone for BatchApplyStats
Source§fn clone(&self) -> BatchApplyStats
fn clone(&self) -> BatchApplyStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BatchApplyStats
Source§impl Debug for BatchApplyStats
impl Debug for BatchApplyStats
Source§impl Default for BatchApplyStats
impl Default for BatchApplyStats
Source§fn default() -> BatchApplyStats
fn default() -> BatchApplyStats
impl Eq for BatchApplyStats
Source§impl PartialEq for BatchApplyStats
impl PartialEq for BatchApplyStats
impl StructuralPartialEq for BatchApplyStats
Auto Trait Implementations§
impl Freeze for BatchApplyStats
impl RefUnwindSafe for BatchApplyStats
impl Send for BatchApplyStats
impl Sync for BatchApplyStats
impl Unpin for BatchApplyStats
impl UnsafeUnpin for BatchApplyStats
impl UnwindSafe for BatchApplyStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more