pub struct AdaptiveMemtableConfig {
pub base_size: usize,
pub min_size: usize,
pub max_size: usize,
pub target_buffer_seconds: f64,
pub ema_alpha: f64,
pub enable_memory_pressure: bool,
}Expand description
Configuration for adaptive memtable sizing
Fields§
§base_size: usizeBase size in bytes (default: 4MB)
min_size: usizeMinimum allowed size (default: 1MB)
max_size: usizeMaximum allowed size (default: 16MB)
target_buffer_seconds: f64Target buffer duration in seconds (default: 1.0)
ema_alpha: f64EMA alpha for write rate (default: 0.1)
enable_memory_pressure: boolWhether to enable memory pressure feedback
Trait Implementations§
Source§impl Clone for AdaptiveMemtableConfig
impl Clone for AdaptiveMemtableConfig
Source§fn clone(&self) -> AdaptiveMemtableConfig
fn clone(&self) -> AdaptiveMemtableConfig
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 AdaptiveMemtableConfig
impl Debug for AdaptiveMemtableConfig
Auto Trait Implementations§
impl Freeze for AdaptiveMemtableConfig
impl RefUnwindSafe for AdaptiveMemtableConfig
impl Send for AdaptiveMemtableConfig
impl Sync for AdaptiveMemtableConfig
impl Unpin for AdaptiveMemtableConfig
impl UnsafeUnpin for AdaptiveMemtableConfig
impl UnwindSafe for AdaptiveMemtableConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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