StarRocks / starrocks-connector-for-apache-flink

Apache License 2.0
189 stars 152 forks source link

[Examples] Use type DefaultStarRocksRowData to reduce serialize cost in multiple tables example #342

Closed banmoy closed 6 months ago

banmoy commented 6 months ago

What type of PR is this:

Which issues of this PR fixes :

Fixes # In multiple tables example, using StarRocksRowData as input type will introduce much serialize/deserialize cost because it's an interface, and Flink will use KryoSerializer for it. Instead we replace it with DefaultStarRocksRowData, and Flink will use PojoSerializer whose performance is better than KryoSerializer. In my test, the percentage of serialize/deserialize can drop from 53% to 27%.

Problem Summary(Required) :

Checklist: