pub struct Options {
pub rocksdb_options: Options,
pub sorted_list_compact_deletes_count: u32,
pub delete_meta_when_empty: bool,
}
Expand description
Options for open a database.
Fields§
§rocksdb_options: Options
RocksDB options.
sorted_list_compact_deletes_count: u32
For sorted list
data type, run RocksDB compact
operation when every specific deletes count.
This is a performance optimization strategy.
delete_meta_when_empty: bool
Auto delete the key meta when items count is 0, the key ID will be different for the next time when reuse the same key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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