Skip to content

Commit 5c7162d

Browse files
pdillingerfacebook-github-bot
authored andcommitted
Set decouple_partitioned_filters=true by default (facebook#13881)
Summary: This is an important feature for avoiding (reducing) unfair block cache treatment for a lot of blocks. It should also unlock some parallel optimizations (facebook#13850) and code simplification. Consider for follow-up: * Feature to avoid majorly under0sized data blocks and filter and index partition blocks Pull Request resolved: facebook#13881 Test Plan: existing tests, been looking good in production Reviewed By: hx235 Differential Revision: D80288192 Pulled By: pdillinger fbshipit-source-id: 5e274ffffb044713278d2a286db6bceaab2dadec
1 parent 972fd9a commit 5c7162d

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

db/db_test_util.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,6 @@ Options DBTestBase::GetOptions(
366366
table_options.block_cache = NewLRUCache(/* too small */ 1);
367367
}
368368

369-
// Test anticipated new default as much as reasonably possible (and remove
370-
// this code when obsolete)
371-
assert(!table_options.decouple_partitioned_filters);
372-
table_options.decouple_partitioned_filters = true;
373-
374369
bool can_allow_mmap = IsMemoryMappedAccessSupported();
375370
switch (option_config) {
376371
case kHashSkipList:

include/rocksdb/table.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,9 @@ struct BlockBasedTableOptions {
440440
// versions of RocksDB able to read partitioned filters are able to read
441441
// decoupled partitioned filters.)
442442
//
443-
// decouple_partitioned_filters = false is the original behavior, because of
444-
// limitations in the initial implementation, and the new behavior
445-
// decouple_partitioned_filters = true is expected to become the new default.
446-
bool decouple_partitioned_filters = false;
443+
// decouple_partitioned_filters = true is the new default. This option is now
444+
// DEPRECATED and might be ignored and/or removed in a future release.
445+
bool decouple_partitioned_filters = true;
447446

448447
// Option to generate Bloom/Ribbon filters that minimize memory
449448
// internal fragmentation.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* `decouple_partitioned_filters = true` is now the default in BlockBasedTableOptions.

0 commit comments

Comments
 (0)