[−][src]Enum rocks::advanced_options::CompactionPri
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
Slightly Priotize larger files by size compensated by #deletes
First compact files whose data's latest update time is oldest. Try this if you only update some hot keys in small ranges.
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.
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]
pub fn clone(&self) -> CompactionPri
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CompactionPri
[src]
impl Debug for CompactionPri
[src]
impl Eq for CompactionPri
[src]
impl Hash for CompactionPri
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<CompactionPri> for CompactionPri
[src]
pub fn eq(&self, other: &CompactionPri) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for CompactionPri
[src]
impl StructuralPartialEq for CompactionPri
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompactionPri
[src]
impl Send for CompactionPri
[src]
impl Sync for CompactionPri
[src]
impl Unpin for CompactionPri
[src]
impl UnwindSafe for CompactionPri
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,