@nxtedition/rocksdb 11.0.7 → 11.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/binding.cc
CHANGED
|
@@ -670,6 +670,7 @@ napi_status InitOptions(napi_env env, T& columnOptions, const U& options) {
|
|
|
670
670
|
columnOptions.compaction_style = rocksdb::kCompactionStyleUniversal;
|
|
671
671
|
columnOptions.compaction_options_universal.compression_size_percent = 80;
|
|
672
672
|
} else if (*compactionOpt == "level") {
|
|
673
|
+
columnOptions.write_buffer_size = static_cast<size_t>(memtable_memory_budget / 4);
|
|
673
674
|
// merge two memtables when flushing to L0
|
|
674
675
|
columnOptions.min_write_buffer_number_to_merge = 2;
|
|
675
676
|
// this means we'll use 50% extra memory in the worst case, but will reduce
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|