You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function will set compression_per_level. Like the Rocksdb Wiki says, when options.compression_per_level is used, options.compression is ignored.
Rocksdb's built-in optimization function selects the best compression algorithm. So do we need to remove rocksdb.compression configuration item in Kvrocks?
The text was updated successfully, but these errors were encountered:
Good catch, as OptimizeLevelStyleCompaction would use the lz4 first then the snappy if supported, but they're still some other compressions. So seems that we can NOT enable the OptimizeLevelStyleCompaction when the compression was explicitly specified, HDYT.
OptimizeLevelStyleCompaction function also optimizes other parameters, such as write_buffer_size , max_bytes_for_level_base , and so on. But we'll overwrite these parameters later.
Maybe can we get rid of OptimizeLevelStyleCompaction, then set compression_per_level in kvrocks?
Kvrocks has a configuration item called
rocksdb.compression
, which is assigned torocksdb::Options
:https://github.com/KvrocksLabs/kvrocks/blob/2e43741ddedc06f0376d71dc385e9d53a24b3204/src/storage.cc#L87
But Kvrocks calls rocksdb's built-in optimization function:
https://github.com/KvrocksLabs/kvrocks/blob/2e43741ddedc06f0376d71dc385e9d53a24b3204/src/storage.cc#L80
This function will set
compression_per_level
. Like the Rocksdb Wiki says, whenoptions.compression_per_level
is used,options.compression
is ignored.Rocksdb's built-in optimization function selects the best compression algorithm. So do we need to remove
rocksdb.compression
configuration item in Kvrocks?The text was updated successfully, but these errors were encountered: