pub enum PlanChoiceReason {
Show 14 variants
ConflictingPrimaryKeyChildrenAccessPreferred,
ConstantFalsePredicate,
EmptyChildAccessPreferred,
FullScanAccess,
IntentKeyAccessOverride,
LimitZeroWindow,
NonIndexAccess,
PlannerCompositeNonIndex,
PlannerFullScanFallback,
PlannerKeySetAccess,
PlannerPrimaryKeyLookup,
PlannerPrimaryKeyRange,
RequiredOrderPrimaryKeyRangePreferred,
SingletonPrimaryKeyChildAccessPreferred,
}Expand description
PlanChoiceReason
Stable selected-route reason buckets for non-index and primary-key access choices. These counters explain why a query did not land on a secondary index route without exposing predicates, literals, or index names.
Variants§
ConflictingPrimaryKeyChildrenAccessPreferred
ConstantFalsePredicate
EmptyChildAccessPreferred
FullScanAccess
IntentKeyAccessOverride
LimitZeroWindow
NonIndexAccess
PlannerCompositeNonIndex
PlannerFullScanFallback
PlannerKeySetAccess
PlannerPrimaryKeyLookup
PlannerPrimaryKeyRange
RequiredOrderPrimaryKeyRangePreferred
SingletonPrimaryKeyChildAccessPreferred
Trait Implementations§
Source§impl Clone for PlanChoiceReason
impl Clone for PlanChoiceReason
Source§fn clone(&self) -> PlanChoiceReason
fn clone(&self) -> PlanChoiceReason
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 moreimpl Copy for PlanChoiceReason
Source§impl Debug for PlanChoiceReason
impl Debug for PlanChoiceReason
impl Eq for PlanChoiceReason
Source§impl PartialEq for PlanChoiceReason
impl PartialEq for PlanChoiceReason
Source§fn eq(&self, other: &PlanChoiceReason) -> bool
fn eq(&self, other: &PlanChoiceReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlanChoiceReason
Auto Trait Implementations§
impl Freeze for PlanChoiceReason
impl RefUnwindSafe for PlanChoiceReason
impl Send for PlanChoiceReason
impl Sync for PlanChoiceReason
impl Unpin for PlanChoiceReason
impl UnsafeUnpin for PlanChoiceReason
impl UnwindSafe for PlanChoiceReason
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