Struct kvdb_rocksdb::CompactionProfile [−][src]
pub struct CompactionProfile {
pub initial_file_size: u64,
pub block_size: usize,
pub write_rate_limit: Option<u64>,
}Compaction profile for the database settings
Fields
initial_file_size: u64
L0-L1 target file size
block_size: usize
block size
write_rate_limit: Option<u64>
rate limiter for background flushes and compactions, bytes/sec, if any
Methods
impl CompactionProfile[src]
impl CompactionProfilepub fn auto(db_path: &Path) -> CompactionProfile[src]
pub fn auto(db_path: &Path) -> CompactionProfileAttempt to determine the best profile automatically, only Linux for now.
pub fn ssd() -> CompactionProfile[src]
pub fn ssd() -> CompactionProfileDefault profile suitable for SSD storage
pub fn hdd() -> CompactionProfile[src]
pub fn hdd() -> CompactionProfileSlow HDD compaction profile
Trait Implementations
impl Clone for CompactionProfile[src]
impl Clone for CompactionProfilefn clone(&self) -> CompactionProfile[src]
fn clone(&self) -> CompactionProfileReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for CompactionProfile[src]
impl Copy for CompactionProfileimpl PartialEq for CompactionProfile[src]
impl PartialEq for CompactionProfilefn eq(&self, other: &CompactionProfile) -> bool[src]
fn eq(&self, other: &CompactionProfile) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &CompactionProfile) -> bool[src]
fn ne(&self, other: &CompactionProfile) -> boolThis method tests for !=.
impl Debug for CompactionProfile[src]
impl Debug for CompactionProfilefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for CompactionProfile[src]
impl Default for CompactionProfilefn default() -> CompactionProfile[src]
fn default() -> CompactionProfileDefault profile suitable for most storage
Auto Trait Implementations
impl Send for CompactionProfile
impl Send for CompactionProfileimpl Sync for CompactionProfile
impl Sync for CompactionProfile