Help Center/ AI DataLake/ Flink reference/ Enhanced Flink Features/ Using Object Reuse of FlinkSQL to Improve Computing Performance
Updated on 2026-11-06 GMT+08:00

Using Object Reuse of FlinkSQL to Improve Computing Performance

Scenario

In Flink SQL services developed using the Table API, objects are frequently created and destroyed during data processing. This results in significant memory allocation and garbage collection (GC) overhead, which impacts computing performance. After the object reuse feature is enabled, FlinkSQL can reuse data transmission objects between operators, avoiding frequent object creation and destruction, thereby improving SQL computing performance.

Notes and Constraints

  • This feature works only for SQL services developed using the Table APIs.
  • Objects in Flink SQL UDFs cannot be reused to ensure computing accuracy.

Usage

You can use either of the following methods to set pipeline.serialization-elimination to true to enable the object reuse function:

  • 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.