pub struct MemTableConfig {
pub flush_size_bytes: usize,
pub flush_max_rows: usize,
pub flush_interval: Duration,
}Expand description
Tuning knobs for MemTableWriter.
Fields§
§flush_size_bytes: usizeFlush when accumulated embedding bytes exceed this threshold. Default: 64 MiB.
flush_max_rows: usizeFlush when the row count exceeds this value regardless of byte size. Default: 100,000 rows.
flush_interval: DurationMaximum age of unflushed data before flush_if_due triggers a flush.
Default: 30 seconds.
Trait Implementations§
Source§impl Clone for MemTableConfig
impl Clone for MemTableConfig
Source§fn clone(&self) -> MemTableConfig
fn clone(&self) -> MemTableConfig
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 MemTableConfig
impl Debug for MemTableConfig
Auto Trait Implementations§
impl Freeze for MemTableConfig
impl RefUnwindSafe for MemTableConfig
impl Send for MemTableConfig
impl Sync for MemTableConfig
impl Unpin for MemTableConfig
impl UnsafeUnpin for MemTableConfig
impl UnwindSafe for MemTableConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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