pub struct ColumnStoreWriteHints {
pub target_chunk_bytes: usize,
pub recommended_insert_batch_rows: usize,
pub max_insert_batch_rows: usize,
pub varwidth_fallback_rows_per_slice: usize,
}Expand description
Heuristics that guide callers when sizing write batches for the column store.
The values are derived from the store’s ingest configuration so higher layers can adapt without duplicating storage-level constants. Callers should treat these numbers as soft targets: exceeding the maximum batch rows will be clamped, but smaller batches are always accepted.
Fields§
§target_chunk_bytes: usizeTarget chunk size used when splitting incoming arrays.
recommended_insert_batch_rows: usizePreferred number of rows to buffer per insert before flushing.
max_insert_batch_rows: usizeHard ceiling for literal INSERT batches before storage splits them eagerly.
varwidth_fallback_rows_per_slice: usizeFallback slice size for exotic variable-width arrays lacking offset metadata.
Implementations§
Source§impl ColumnStoreWriteHints
impl ColumnStoreWriteHints
Sourcepub fn clamp_insert_batch_rows(&self, requested_rows: usize) -> usize
pub fn clamp_insert_batch_rows(&self, requested_rows: usize) -> usize
Clamp a requested batch size to the store’s supported envelope.
Trait Implementations§
Source§impl Clone for ColumnStoreWriteHints
impl Clone for ColumnStoreWriteHints
Source§fn clone(&self) -> ColumnStoreWriteHints
fn clone(&self) -> ColumnStoreWriteHints
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 ColumnStoreWriteHints
Source§impl Debug for ColumnStoreWriteHints
impl Debug for ColumnStoreWriteHints
impl Eq for ColumnStoreWriteHints
Source§impl PartialEq for ColumnStoreWriteHints
impl PartialEq for ColumnStoreWriteHints
Source§fn eq(&self, other: &ColumnStoreWriteHints) -> bool
fn eq(&self, other: &ColumnStoreWriteHints) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColumnStoreWriteHints
Auto Trait Implementations§
impl Freeze for ColumnStoreWriteHints
impl RefUnwindSafe for ColumnStoreWriteHints
impl Send for ColumnStoreWriteHints
impl Sync for ColumnStoreWriteHints
impl Unpin for ColumnStoreWriteHints
impl UnsafeUnpin for ColumnStoreWriteHints
impl UnwindSafe for ColumnStoreWriteHints
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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