Using RocksDB Prefix Bloom Filter in FlinkSQL to Improve the Performance of the Join and Top N Operators
Scenario
RocksDB Prefix Bloom Filters can be used to optimize the performance of join and top N operators in Flink SQL.
Notes and Constraints
Snapshots generated before and after this feature is enabled are incompatible.
Usage
You can use either of the following methods to set table.exec.use-map-prefix-bloomfilter to true to enable the RocksDB Prefix Bloom Filter feature:
- Method 1: When configuring a Flink job, add this custom parameter to the flink_config parameter of the job.
- Method 2: Add this custom parameter to the Flink parameters of the endpoint.
You can use either of the following methods to set state.backend.rocksdb.auto-workload-parameters-derivation to true to enable the RocksDB automatic workload parameter derivation feature:
- Method 1: When configuring a Flink job, add this custom parameter to the flink_config parameter of the job.
- Method 2: Add this custom parameter to the Flink parameters of the endpoint.
After the RocksDB automatic load parameter derivation function is enabled, the parameters related to the prefix bloom filter can be automatically adjusted based on the job load.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot