Much better stats for seeks and prefix filtering by pdillinger · Pull Request #11460 · facebook/rocksdb (original) (raw)

@pdillinger

Summary: We want to know more about opportunities for better range filters, and the effectiveness of our own range filters. Currently the stats are very limited, essentially logging just hits and misses against prefix filters for range scans in BLOOM_FILTER_PREFIX_* without tracking the false positive rate. Perhaps confusingly, when prefix filters are used for point queries, the stats are currently going into the non-PREFIX tickers.

This change does several things:

Test Plan: unit tests updated (TODO: finish)

Performance test shows a consistent small improvement with these changes, both with clang and with gcc. I'm not sure why, but I'll take it. TODO: details