@nxtedition/rocksdb 13.0.1 → 13.0.2
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
|
@@ -886,8 +886,7 @@ napi_status InitOptions(napi_env env, T& columnOptions, const U& options) {
|
|
|
886
886
|
}
|
|
887
887
|
|
|
888
888
|
columnOptions.optimize_filters_for_hits = false;
|
|
889
|
-
|
|
890
|
-
|
|
889
|
+
NAPI_STATUS_RETURN(GetProperty(env, options, "optimizeFiltersForHits", columnOptions.optimize_filters_for_hits));
|
|
891
890
|
|
|
892
891
|
uint32_t cacheSize = 8 << 20;
|
|
893
892
|
NAPI_STATUS_RETURN(GetProperty(env, options, "cacheSize", cacheSize));
|
|
@@ -906,7 +905,7 @@ napi_status InitOptions(napi_env env, T& columnOptions, const U& options) {
|
|
|
906
905
|
if (optimize == "point-lookup") {
|
|
907
906
|
tableOptions.data_block_index_type = rocksdb::BlockBasedTableOptions::kDataBlockBinaryAndHash;
|
|
908
907
|
tableOptions.data_block_hash_table_util_ratio = 0.75;
|
|
909
|
-
tableOptions.filter_policy.reset(rocksdb::NewRibbonFilterPolicy(10,
|
|
908
|
+
tableOptions.filter_policy.reset(rocksdb::NewRibbonFilterPolicy(10, 2));
|
|
910
909
|
|
|
911
910
|
columnOptions.memtable_prefix_bloom_size_ratio = 0.02;
|
|
912
911
|
columnOptions.memtable_whole_key_filtering = true;
|
|
@@ -944,7 +943,6 @@ napi_status InitOptions(napi_env env, T& columnOptions, const U& options) {
|
|
|
944
943
|
tableOptions.optimize_filters_for_memory = true;
|
|
945
944
|
NAPI_STATUS_RETURN(GetProperty(env, options, "optimizeFiltersForMemory", tableOptions.optimize_filters_for_memory));
|
|
946
945
|
|
|
947
|
-
|
|
948
946
|
tableOptions.max_auto_readahead_size = 256 * 1024;
|
|
949
947
|
NAPI_STATUS_RETURN(GetProperty(env, options, "maxAutoReadaheadSize", tableOptions.max_auto_readahead_size));
|
|
950
948
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|