pub struct QueryBatcherStats {
pub queries_batched: u64,
pub queries_dropped: u64,
pub queries_rate_limited: u64,
pub queries_deduplicated: u64,
pub batches_sent: u64,
pub total_queries_sent: u64,
pub successful_queries: u64,
pub failed_queries: u64,
pub rate_adjustments: u64,
}Expand description
Statistics for query batching
Fields§
§queries_batched: u64Total queries added to batches
queries_dropped: u64Queries dropped due to full queue
queries_rate_limited: u64Queries skipped due to rate limiting
queries_deduplicated: u64Queries deduplicated
batches_sent: u64Number of batches sent
total_queries_sent: u64Total queries actually sent (after batching/dedup)
successful_queries: u64Successful queries
failed_queries: u64Failed queries
rate_adjustments: u64Number of rate adjustments made
Implementations§
Source§impl QueryBatcherStats
impl QueryBatcherStats
Sourcepub fn dedup_ratio(&self) -> f64
pub fn dedup_ratio(&self) -> f64
Calculate the deduplication ratio
Sourcepub fn batching_efficiency(&self) -> f64
pub fn batching_efficiency(&self) -> f64
Calculate the batching efficiency (queries saved)
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Calculate success rate
Trait Implementations§
Source§impl Clone for QueryBatcherStats
impl Clone for QueryBatcherStats
Source§fn clone(&self) -> QueryBatcherStats
fn clone(&self) -> QueryBatcherStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryBatcherStats
impl Debug for QueryBatcherStats
Source§impl Default for QueryBatcherStats
impl Default for QueryBatcherStats
Source§fn default() -> QueryBatcherStats
fn default() -> QueryBatcherStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueryBatcherStats
impl RefUnwindSafe for QueryBatcherStats
impl Send for QueryBatcherStats
impl Sync for QueryBatcherStats
impl Unpin for QueryBatcherStats
impl UnwindSafe for QueryBatcherStats
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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 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>
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