Struct tetsy_kvdb_rocksdb::CompactionProfile[][src]

pub struct CompactionProfile {
    pub initial_file_size: u64,
    pub block_size: usize,
}

Compaction profile for the database settings Note, that changing these parameters may trigger the compaction process of RocksDB on startup. https://github.com/facebook/rocksdb/wiki/Leveled-Compaction#level_compaction_dynamic_level_bytes-is-true

Fields

initial_file_size: u64

L0-L1 target file size The minimum size should be calculated in accordance with the number of levels and the expected size of the database.

block_size: usize

block size

Implementations

impl CompactionProfile[src]

pub fn auto(db_path: &Path) -> CompactionProfile[src]

Attempt to determine the best profile automatically, only Linux for now.

pub fn ssd() -> CompactionProfile[src]

Default profile suitable for SSD storage

pub fn hdd() -> CompactionProfile[src]

Slow HDD compaction profile

Trait Implementations

impl Clone for CompactionProfile[src]

impl Copy for CompactionProfile[src]

impl Debug for CompactionProfile[src]

impl Default for CompactionProfile[src]

fn default() -> CompactionProfile[src]

Default profile suitable for most storage

impl PartialEq<CompactionProfile> for CompactionProfile[src]

impl StructuralPartialEq for CompactionProfile[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> Erased for T[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,