pub struct PatternStats {
pub frequency: u64,
pub avg_execution_time_us: f64,
pub peak_memory_bytes: u64,
pub avg_rows_scanned: u64,
pub avg_rows_returned: u64,
pub hot_tables: Vec<String>,
pub hot_filter_columns: Vec<String>,
pub hot_sort_columns: Vec<String>,
pub last_seen: Instant,
}Expand description
Learned statistics for a query pattern
Fields§
§frequency: u64Number of times this pattern was observed
avg_execution_time_us: f64Average execution time in microseconds
peak_memory_bytes: u64Peak memory usage in bytes
avg_rows_scanned: u64Average rows scanned
avg_rows_returned: u64Average rows returned
hot_tables: Vec<String>Tables most commonly accessed with this pattern
hot_filter_columns: Vec<String>Columns most commonly filtered on
hot_sort_columns: Vec<String>Columns most commonly in ORDER BY
last_seen: InstantLast observed timestamp
Trait Implementations§
Source§impl Clone for PatternStats
impl Clone for PatternStats
Source§fn clone(&self) -> PatternStats
fn clone(&self) -> PatternStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PatternStats
impl RefUnwindSafe for PatternStats
impl Send for PatternStats
impl Sync for PatternStats
impl Unpin for PatternStats
impl UnsafeUnpin for PatternStats
impl UnwindSafe for PatternStats
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