Help Center/ AI DataLake/ Flink reference/ Enhanced Flink Features/ Using RocksDB Prefix Bloom Filter in FlinkSQL to Improve the Performance of the Join and Top N Operators
Updated on 2026-11-06 GMT+08:00

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.