pub enum PlanHint {
None,
IndexScan(String),
SeqScan,
Parallel(u32),
CachePlan,
Timeout(Duration),
Custom(String),
}Expand description
Hints for query execution optimization.
These hints can be used by database engines to optimize query execution. Different databases support different hints - the engine implementation decides how to apply them.
Variants§
None
No specific hint.
IndexScan(String)
Force use of a specific index.
SeqScan
Force a sequential scan (for analytics queries).
Parallel(u32)
Enable parallel execution.
CachePlan
Cache this query’s execution plan.
Timeout(Duration)
Set a timeout for this query.
Custom(String)
Custom database-specific hint.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlanHint
impl RefUnwindSafe for PlanHint
impl Send for PlanHint
impl Sync for PlanHint
impl Unpin for PlanHint
impl UnwindSafe for PlanHint
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