Skip to main content

ExecutionSummaryCounts

Struct ExecutionSummaryCounts 

Source
pub struct ExecutionSummaryCounts {
    pub iops: usize,
    pub requests: usize,
    pub bytes_read: usize,
    pub indices_loaded: usize,
    pub parts_loaded: usize,
    pub index_comparisons: usize,
    pub all_counts: HashMap<String, usize>,
    pub all_times: HashMap<String, usize>,
}

Fields§

§iops: usize

The number of I/O operations performed

§requests: usize

The number of requests made to the storage layer (may be larger or smaller than iops depending on coalescing configuration)

§bytes_read: usize

The number of bytes read during the execution of the plan

§indices_loaded: usize

The number of top-level indices loaded

§parts_loaded: usize

The number of index partitions loaded

§index_comparisons: usize

The number of index comparisons performed (the exact meaning depends on the index type)

§all_counts: HashMap<String, usize>

Additional metrics for more detailed statistics. These are subject to change in the future and should only be used for debugging purposes.

Newer metrics (e.g. INDEX_CACHE_HITS_METRIC, INDEX_CACHE_MISSES_METRIC) are added here rather than as pub fields, so this struct stays backwards compatible for callers that construct or destructure it. Prefer the typed accessors below.

§all_times: HashMap<String, usize>

Additional time metrics for more detailed statistics, stored in nanoseconds. These are subject to change in the future and should only be used for debugging purposes.

Implementations§

Source§

impl ExecutionSummaryCounts

Source

pub fn index_cache_hits(&self) -> usize

Number of index cache page lookups where the loader was not executed (per-page granularity).

A “hit” is any page-level lookup at an instrumented cache boundary that did not run the loader on this call. That covers both a true cache hit on an already-populated entry and a coalesced concurrent load where an in-flight loader started by a different caller produced the value.

Instrumented boundaries in this release: BTree page, IVF partition (v2, write_cache=true scan path), inverted posting list (grouped and per-token), inverted per-token metadata (PostingMetadataKey), inverted phrase positions (PositionKey), bitmap posting (Equals / Range / IsIn), ngram posting, and rtree page / null slot.

Caveats:

  • IVF v2 streaming scans and legacy v1 IVF partitions run load_partition with write_cache=false. Those loads always execute the loader and never write the result back, so they are reported as a miss on every call. See Self::index_cache_hit_ratio.
  • A cold posting-list lookup on the grouped inverted layout can record up to two misses (posting-list group + per-token metadata) for a single term.

Other index cache boundaries such as HNSW graph pages and quantizer codebooks are not yet instrumented; a scan that only touches those paths returns 0 here.

Source

pub fn index_cache_misses(&self) -> usize

Number of index cache page lookups that had to execute the loader (per-page granularity).

A “miss” is any page-level lookup at an instrumented cache boundary where the loader ran, i.e. the page was not resident and had to be materialised (typically from storage). See Self::index_cache_hits for the paired counter and the list of instrumented boundaries.

Source

pub fn index_cache_hit_ratio(&self) -> f32

Ratio of index cache hits to total lookups. Returns 0.0 when no lookups were recorded in this scan.

This ratio only reflects paths that write their result back to the index cache. Streaming scans (IVF v2 write_cache=false and legacy v1 IVF load_partition_stream) intentionally bypass the cache and are counted as misses on every call, so a workload dominated by streaming vector scans will report a hit ratio near 0.0 regardless of cache size.

Trait Implementations§

Source§

impl Clone for ExecutionSummaryCounts

Source§

fn clone(&self) -> ExecutionSummaryCounts

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ExecutionSummaryCounts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ExecutionSummaryCounts

Source§

fn default() -> ExecutionSummaryCounts

Returns the “default value” for a type. Read more
Source§

impl Eq for ExecutionSummaryCounts

Source§

impl PartialEq for ExecutionSummaryCounts

Source§

fn eq(&self, other: &ExecutionSummaryCounts) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ExecutionSummaryCounts

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynEq for T
where T: Eq + Any,

Source§

fn dyn_eq(&self, other: &(dyn Any + 'static)) -> bool

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more