Revision df38c1ce660628f05b4686eeaf0b548295ce7967 authored by Mike Kolupaev on 22 April 2019, 15:17:45 UTC, committed by Facebook Github Bot on 22 April 2019, 15:20:35 UTC
Summary:
Introduce BlockBasedTableOptions::index_shortening to give users control on which key shortening techniques to be used in building index blocks. Before this patch, both separators and successor keys where shortened in indexes. With this patch, the default is set to kShortenSeparators to only shorten the separators. Since each index block has many separators and only one successor (last key), the change should not have negative impact on index block size. However it should prevent many unnecessary block loads where due to approximation introduced by shorted successor, seek would land us to the previous block and then fix it by moving to the next one.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5174

Differential Revision: D14884185

Pulled By: al13n321

fbshipit-source-id: 1b08bc8c03edcf09b6b8c16e9a7eea08ad4dd534
1 parent de76909
History
File Mode Size
adaptive_table_factory.cc -rw-r--r-- 4.9 KB
adaptive_table_factory.h -rw-r--r-- 1.9 KB
block.cc -rw-r--r-- 32.2 KB
block.h -rw-r--r-- 19.8 KB
block_based_filter_block.cc -rw-r--r-- 8.1 KB
block_based_filter_block.h -rw-r--r-- 4.7 KB
block_based_filter_block_test.cc -rw-r--r-- 8.3 KB
block_based_table_builder.cc -rw-r--r-- 46.3 KB
block_based_table_builder.h -rw-r--r-- 5.8 KB
block_based_table_factory.cc -rw-r--r-- 24.7 KB
block_based_table_factory.h -rw-r--r-- 8.3 KB
block_based_table_reader.cc -rw-r--r-- 140.1 KB
block_based_table_reader.h -rw-r--r-- 29.6 KB
block_builder.cc -rw-r--r-- 7.1 KB
block_builder.h -rw-r--r-- 2.8 KB
block_fetcher.cc -rw-r--r-- 9.2 KB
block_fetcher.h -rw-r--r-- 3.4 KB
block_prefix_index.cc -rw-r--r-- 7.7 KB
block_prefix_index.h -rw-r--r-- 2.2 KB
block_test.cc -rw-r--r-- 20.4 KB
bloom_block.cc -rw-r--r-- 700 bytes
bloom_block.h -rw-r--r-- 1.0 KB
cleanable_test.cc -rw-r--r-- 6.3 KB
cuckoo_table_builder.cc -rw-r--r-- 19.7 KB
cuckoo_table_builder.h -rw-r--r-- 4.6 KB
cuckoo_table_builder_test.cc -rw-r--r-- 27.3 KB
cuckoo_table_factory.cc -rw-r--r-- 2.6 KB
cuckoo_table_factory.h -rw-r--r-- 2.9 KB
cuckoo_table_reader.cc -rw-r--r-- 13.6 KB
cuckoo_table_reader.h -rw-r--r-- 3.0 KB
cuckoo_table_reader_test.cc -rw-r--r-- 19.8 KB
data_block_footer.cc -rw-r--r-- 1.8 KB
data_block_footer.h -rw-r--r-- 848 bytes
data_block_hash_index.cc -rw-r--r-- 3.1 KB
data_block_hash_index.h -rw-r--r-- 4.9 KB
data_block_hash_index_test.cc -rw-r--r-- 23.5 KB
filter_block.h -rw-r--r-- 6.6 KB
flush_block_policy.cc -rw-r--r-- 3.1 KB
flush_block_policy.h -rw-r--r-- 1.1 KB
format.cc -rw-r--r-- 15.1 KB
format.h -rw-r--r-- 10.8 KB
full_filter_bits_builder.h -rw-r--r-- 2.8 KB
full_filter_block.cc -rw-r--r-- 9.0 KB
full_filter_block.h -rw-r--r-- 5.7 KB
full_filter_block_test.cc -rw-r--r-- 7.1 KB
get_context.cc -rw-r--r-- 12.0 KB
get_context.h -rw-r--r-- 4.6 KB
index_builder.cc -rw-r--r-- 8.7 KB
index_builder.h -rw-r--r-- 17.1 KB
internal_iterator.h -rw-r--r-- 5.5 KB
iter_heap.h -rw-r--r-- 1.2 KB
iterator.cc -rw-r--r-- 6.7 KB
iterator_wrapper.h -rw-r--r-- 3.3 KB
merger_test.cc -rw-r--r-- 4.5 KB
merging_iterator.cc -rw-r--r-- 12.8 KB
merging_iterator.h -rw-r--r-- 2.1 KB
meta_blocks.cc -rw-r--r-- 19.7 KB
meta_blocks.h -rw-r--r-- 6.2 KB
mock_table.cc -rw-r--r-- 4.4 KB
mock_table.h -rw-r--r-- 5.8 KB
multiget_context.h -rw-r--r-- 7.8 KB
partitioned_filter_block.cc -rw-r--r-- 13.0 KB
partitioned_filter_block.h -rw-r--r-- 4.3 KB
partitioned_filter_block_test.cc -rw-r--r-- 13.2 KB
persistent_cache_helper.cc -rw-r--r-- 4.2 KB
persistent_cache_helper.h -rw-r--r-- 1.5 KB
persistent_cache_options.h -rw-r--r-- 1.0 KB
plain_table_builder.cc -rw-r--r-- 9.7 KB
plain_table_builder.h -rw-r--r-- 4.6 KB
plain_table_factory.cc -rw-r--r-- 8.7 KB
plain_table_factory.h -rw-r--r-- 8.5 KB
plain_table_index.cc -rw-r--r-- 7.3 KB
plain_table_index.h -rw-r--r-- 7.2 KB
plain_table_key_coding.cc -rw-r--r-- 17.4 KB
plain_table_key_coding.h -rw-r--r-- 7.4 KB
plain_table_reader.cc -rw-r--r-- 24.4 KB
plain_table_reader.h -rw-r--r-- 8.5 KB
scoped_arena_iterator.h -rw-r--r-- 1.6 KB
sst_file_reader.cc -rw-r--r-- 2.8 KB
sst_file_reader_test.cc -rw-r--r-- 5.0 KB
sst_file_writer.cc -rw-r--r-- 10.9 KB
sst_file_writer_collectors.h -rw-r--r-- 3.1 KB
table_builder.h -rw-r--r-- 6.2 KB
table_properties.cc -rw-r--r-- 10.4 KB
table_properties_internal.h -rw-r--r-- 1.0 KB
table_reader.h -rw-r--r-- 5.2 KB
table_reader_bench.cc -rw-r--r-- 12.4 KB
table_test.cc -rw-r--r-- 143.8 KB
two_level_iterator.cc -rw-r--r-- 6.3 KB
two_level_iterator.h -rw-r--r-- 1.7 KB

back to top