pub struct SizeTiered {
pub base_size: u32,
pub level_ratio: u8,
}
Expand description
Size-tiered compaction strategy (STCS)
If a level reaches a threshold, it is merged into a larger segment to the next level.
STCS suffers from high read and temporary doubled space amplification, but has good write amplification.
Fields§
§base_size: u32
Base size
level_ratio: u8
Size ratio between levels of the LSM tree (a.k.a fanout, growth rate).
This is the exponential growth of the from one level to the next
A level target size is: base_size * level_ratio.pow(#level + 1)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnwindSafe for Strategy
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