pub struct ResultMetadata {
pub execution_time_ms: u64,
pub rows_scanned: usize,
}Expand description
Performance metadata attached to every analytics result.
The dashboard uses execution_time_ms to display the “Avg Query Latency” counter.
rows_scanned is useful for understanding query cost (before indexes kick in).
Fields§
§execution_time_ms: u64Wall-clock time from query start to result ready, in milliseconds.
Measured using web_time::Instant which works in both native and WASM.
rows_scanned: usizeNumber of documents that passed the WHERE filter and were included in the metric computation. For COUNT this equals the result; for others it’s the number of documents whose field value was extracted.
Trait Implementations§
Source§impl Debug for ResultMetadata
impl Debug for ResultMetadata
Auto Trait Implementations§
impl Freeze for ResultMetadata
impl RefUnwindSafe for ResultMetadata
impl Send for ResultMetadata
impl Sync for ResultMetadata
impl Unpin for ResultMetadata
impl UnsafeUnpin for ResultMetadata
impl UnwindSafe for ResultMetadata
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