pub struct SqpPlannerConfig {
pub max_cache_size: usize,
pub cost_model: SqpCostModel,
pub enable_predicate_pushdown: bool,
pub parallel_scans: u32,
pub index_selectivity_threshold: f64,
pub default_table_rows: u64,
pub bytes_per_row: u64,
}Expand description
Configuration that drives planner behaviour.
Fields§
§max_cache_size: usizeMaximum number of plans kept in the plan cache.
cost_model: SqpCostModelCost model used when estimating plan costs.
enable_predicate_pushdown: boolWhether predicates are pushed down into scans before projection.
parallel_scans: u32Number of parallel scan threads to assume when estimating cost.
index_selectivity_threshold: f64Index selectivity threshold below which an index scan is preferred. (0.0 = never use index, 1.0 = always use index when available)
default_table_rows: u64Row count assumed for a full sequential scan of a table.
bytes_per_row: u64Average bytes per row (used for I/O cost estimation).
Trait Implementations§
Source§impl Clone for SqpPlannerConfig
impl Clone for SqpPlannerConfig
Source§fn clone(&self) -> SqpPlannerConfig
fn clone(&self) -> SqpPlannerConfig
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 moreSource§impl Debug for SqpPlannerConfig
impl Debug for SqpPlannerConfig
Auto Trait Implementations§
impl Freeze for SqpPlannerConfig
impl RefUnwindSafe for SqpPlannerConfig
impl Send for SqpPlannerConfig
impl Sync for SqpPlannerConfig
impl Unpin for SqpPlannerConfig
impl UnsafeUnpin for SqpPlannerConfig
impl UnwindSafe for SqpPlannerConfig
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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