Struct kvdb_rocksdb::CompactionProfile [−][src]
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: u64L0-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: usizeblock size
Implementations
impl CompactionProfile[src]
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 Clone for CompactionProfile[src]fn clone(&self) -> CompactionProfile[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for CompactionProfile[src]
impl Copy for CompactionProfile[src]impl Default 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 PartialEq<CompactionProfile> for CompactionProfile[src]fn eq(&self, other: &CompactionProfile) -> bool[src]
fn ne(&self, other: &CompactionProfile) -> bool[src]
Auto Trait Implementations
impl RefUnwindSafe for CompactionProfile
impl RefUnwindSafe for CompactionProfileimpl Send for CompactionProfile
impl Send for CompactionProfileimpl Sync for CompactionProfile
impl Sync for CompactionProfileimpl Unpin for CompactionProfile
impl Unpin for CompactionProfileimpl UnwindSafe for CompactionProfile
impl UnwindSafe for CompactionProfile