pub struct RocksDbStorageConfig {
pub path: String,
pub block_cache_mb: usize,
pub compression: bool,
pub write_buffer_size: usize,
pub max_write_buffer_number: i32,
}Expand description
Configuration for the RocksDB hot tier.
Fields§
§path: StringPath to the RocksDB database directory.
block_cache_mb: usizeRocksDB block cache size in MB (default: 64).
compression: boolEnable LZ4 compression (default: true).
write_buffer_size: usizeWrite buffer size in bytes (default: 64 MB).
max_write_buffer_number: i32Max number of concurrent write buffers (default: 3).
Trait Implementations§
Source§impl Clone for RocksDbStorageConfig
impl Clone for RocksDbStorageConfig
Source§fn clone(&self) -> RocksDbStorageConfig
fn clone(&self) -> RocksDbStorageConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RocksDbStorageConfig
impl Debug for RocksDbStorageConfig
Auto Trait Implementations§
impl Freeze for RocksDbStorageConfig
impl RefUnwindSafe for RocksDbStorageConfig
impl Send for RocksDbStorageConfig
impl Sync for RocksDbStorageConfig
impl Unpin for RocksDbStorageConfig
impl UnsafeUnpin for RocksDbStorageConfig
impl UnwindSafe for RocksDbStorageConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more