We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7eb62d commit 83151a8Copy full SHA for 83151a8
src/db_options.rs
@@ -720,6 +720,19 @@ impl BlockBasedOptions {
720
}
721
722
723
+ /// Use delta encoding to compress keys in blocks.
724
+ /// ReadOptions::pin_data requires this option to be disabled.
725
+ ///
726
+ /// Default: true
727
+ pub fn set_use_delta_encoding(&mut self, enable: bool) {
728
+ unsafe {
729
+ ffi::rocksdb_block_based_options_set_use_delta_encoding(
730
+ self.inner,
731
+ c_uchar::from(enable),
732
+ );
733
+ }
734
735
+
736
/// Number of keys between restart points for delta encoding of keys.
737
/// This parameter can be changed dynamically. Most clients should
738
/// leave this parameter alone. The minimum value allowed is 1. Any smaller
0 commit comments