pub struct MemoizeCache {
pub group_maps: BTreeMap<String, Option<Rc<GroupMap>>>,
pub expr_plans: BTreeMap<usize, ExprPlan>,
pub hit_count: u64,
pub miss_count: u64,
/* private fields */
}Fields§
§group_maps: BTreeMap<String, Option<Rc<GroupMap>>>v7.29 (round-22 phase 3) - batch-evaluated correlated scalar subqueries: subquery repr -> Some((outer column, key -> value map built in ONE pass)) or None when the shape can’t batch (so we don’t re-analyse it per row). Turns 23.5k per-group executions into one grouped scan + 23.5k lookups.
expr_plans: BTreeMap<usize, ExprPlan>v7.29 (3c) - host-expression ptr -> (subquery count, plan).
hit_count: u64§miss_count: u64Implementations§
Source§impl MemoizeCache
impl MemoizeCache
pub fn new() -> Self
pub const fn with_max_entries(self, n: usize) -> Self
pub const fn with_max_bytes(self, b: usize) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for MemoizeCache
impl Clone for MemoizeCache
Source§fn clone(&self) -> MemoizeCache
fn clone(&self) -> MemoizeCache
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 MemoizeCache
impl Debug for MemoizeCache
Auto Trait Implementations§
impl !Send for MemoizeCache
impl !Sync for MemoizeCache
impl Freeze for MemoizeCache
impl RefUnwindSafe for MemoizeCache
impl Unpin for MemoizeCache
impl UnsafeUnpin for MemoizeCache
impl UnwindSafe for MemoizeCache
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