[][src]Enum rocks::advanced_options::CompactionPri

#[repr(C)]pub enum CompactionPri {
    ByCompensatedSize,
    OldestLargestSeqFirst,
    OldestSmallestSeqFirst,
    MinOverlappingRatio,
}

In Level-based comapction, it Determines which file from a level to be picked to merge to the next level. We suggest people try kMinOverlappingRatio first when you tune your database.

Variants

ByCompensatedSize

Slightly Priotize larger files by size compensated by #deletes

OldestLargestSeqFirst

First compact files whose data's latest update time is oldest. Try this if you only update some hot keys in small ranges.

OldestSmallestSeqFirst

First compact files whose range hasn't been compacted to the next level for the longest. If your updates are random across the key space, write amplification is slightly better with this option.

MinOverlappingRatio

First compact files whose ratio between overlapping size in next level and its size is the smallest. It in many cases can optimize write amplification.

Trait Implementations

impl Clone for CompactionPri[src]

impl Copy for CompactionPri[src]

impl Debug for CompactionPri[src]

impl Eq for CompactionPri[src]

impl Hash for CompactionPri[src]

impl PartialEq<CompactionPri> for CompactionPri[src]

impl StructuralEq for CompactionPri[src]

impl StructuralPartialEq for CompactionPri[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.