Skip to content

Commit

Permalink
Correct the comment of caching index & filter block with additional o…
Browse files Browse the repository at this point in the history
  • Loading branch information
Myasuka committed Oct 13, 2021
1 parent e413c70 commit 6ac7a4d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,12 @@ public KeyValueStorageRocksDB(String basePath, String subPath, DbConfigType dbCo
tableOptions.setFilterPolicy(new BloomFilter(bloomFilterBitsPerKey, false));
}

// Options best suited for HDDs
// Cache index & filter in block cache to limit the memory usage
tableOptions.setCacheIndexAndFilterBlocks(true);
// Options below are tune to mitigate the performance regression when limiting the memory usage
tableOptions.setCacheIndexAndFilterBlocksWithHighPriority(true);
tableOptions.setPinL0FilterAndIndexBlocksInCache(true);

options.setLevelCompactionDynamicLevelBytes(true);

options.setTableFormatConfig(tableOptions);
Expand Down

0 comments on commit 6ac7a4d

Please sign in to comment.