pub struct AutoCountPlan {
pub path: AutoCountPath,
pub workers: usize,
pub chunk_size: usize,
}Expand description
Auto execution plan.
Fields§
§path: AutoCountPath§workers: usize§chunk_size: usizeImplementations§
Source§impl AutoCountPlan
impl AutoCountPlan
Sourcepub const CACHE_MIN_BATCH: usize = 8
pub const CACHE_MIN_BATCH: usize = 8
Batch-size threshold where cached pipeline becomes preferable.
Sourcepub const POOL_MIN_BATCH: usize = 4_096
pub const POOL_MIN_BATCH: usize = 4_096
Batch-size threshold where pooled parallel execution becomes worthwhile.
Sourcepub const POOL_MIN_CHUNK_PER_WORKER: usize = 1_024
pub const POOL_MIN_CHUNK_PER_WORKER: usize = 1_024
Keep enough work per worker to avoid coordination overhead.
Sourcepub const POOL_MAX_WORKERS: usize = 16
pub const POOL_MAX_WORKERS: usize = 16
Hard cap to avoid over-fragmenting a single request.
pub fn for_driver(batch_len: usize) -> Self
pub fn for_pool( batch_len: usize, max_connections: usize, available_slots: usize, ) -> Self
Trait Implementations§
Source§impl Clone for AutoCountPlan
impl Clone for AutoCountPlan
Source§fn clone(&self) -> AutoCountPlan
fn clone(&self) -> AutoCountPlan
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 AutoCountPlan
impl Debug for AutoCountPlan
Source§impl PartialEq for AutoCountPlan
impl PartialEq for AutoCountPlan
impl Copy for AutoCountPlan
impl Eq for AutoCountPlan
impl StructuralPartialEq for AutoCountPlan
Auto Trait Implementations§
impl Freeze for AutoCountPlan
impl RefUnwindSafe for AutoCountPlan
impl Send for AutoCountPlan
impl Sync for AutoCountPlan
impl Unpin for AutoCountPlan
impl UnsafeUnpin for AutoCountPlan
impl UnwindSafe for AutoCountPlan
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