pub struct CostModelConfig {
pub c_seq: f64,
pub c_random: f64,
pub c_filter: f64,
pub c_compare: f64,
pub block_size: usize,
pub btree_fanout: usize,
pub memory_bandwidth: f64,
}Expand description
Cost model configuration with empirically-derived constants
Fields§
§c_seq: f64Sequential I/O cost per block (ms)
c_random: f64Random I/O cost per seek (ms)
c_filter: f64CPU cost per row filter (ms)
c_compare: f64CPU cost per comparison during sort (ms)
block_size: usizeBlock size in bytes
btree_fanout: usizeB-tree fanout for index cost estimation
memory_bandwidth: f64Memory bandwidth (bytes/ms)
Trait Implementations§
Source§impl Clone for CostModelConfig
impl Clone for CostModelConfig
Source§fn clone(&self) -> CostModelConfig
fn clone(&self) -> CostModelConfig
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 CostModelConfig
impl Debug for CostModelConfig
Auto Trait Implementations§
impl Freeze for CostModelConfig
impl RefUnwindSafe for CostModelConfig
impl Send for CostModelConfig
impl Sync for CostModelConfig
impl Unpin for CostModelConfig
impl UnsafeUnpin for CostModelConfig
impl UnwindSafe for CostModelConfig
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
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