Slow OceanBase cluster data synchronization with Flink

Applies to: V2.x,V4.x

Applicable versions

All versions of obbinlog.

Problem description

Flink connects to obbinlog to synchronize OceanBase cluster data. Incremental synchronization of small tables is fast, but full synchronization of large tables is slow.

Cause

OCP shows many top SQL statements with low execution efficiency.

Solution

  • SQL on partitioned tables executes inefficiently and requires optimization.

  • If a better chunking column than the primary key exists, specify it with the Flink parameter scan.incremental.snapshot.chunk.key-column.