Struct kvdb_rocksdb::CompactionProfile
source · [−]Expand description
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
sourceimpl CompactionProfile
impl CompactionProfile
sourcepub fn auto(db_path: &Path) -> CompactionProfile
pub fn auto(db_path: &Path) -> CompactionProfile
Attempt to determine the best profile automatically, only Linux for now.
sourcepub fn ssd() -> CompactionProfile
pub fn ssd() -> CompactionProfile
Default profile suitable for SSD storage
sourcepub fn hdd() -> CompactionProfile
pub fn hdd() -> CompactionProfile
Slow HDD compaction profile
Trait Implementations
sourceimpl Clone for CompactionProfile
impl Clone for CompactionProfile
sourcefn clone(&self) -> CompactionProfile
fn clone(&self) -> CompactionProfile
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CompactionProfile
impl Debug for CompactionProfile
sourceimpl Default for CompactionProfile
impl Default for CompactionProfile
sourcefn default() -> CompactionProfile
fn default() -> CompactionProfile
Default profile suitable for most storage
sourceimpl PartialEq<CompactionProfile> for CompactionProfile
impl PartialEq<CompactionProfile> for CompactionProfile
sourcefn eq(&self, other: &CompactionProfile) -> bool
fn eq(&self, other: &CompactionProfile) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CompactionProfile) -> bool
fn ne(&self, other: &CompactionProfile) -> bool
This method tests for !=
.
impl Copy for CompactionProfile
impl StructuralPartialEq for CompactionProfile
Auto Trait Implementations
impl RefUnwindSafe for CompactionProfile
impl Send for CompactionProfile
impl Sync for CompactionProfile
impl Unpin for CompactionProfile
impl UnwindSafe for CompactionProfile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more