TiDB CDC NTF file data address: Is the size of a JSON file determined by transactions or something else?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tidb cdc NTF文件数据地址,一个JSON文件的大小是根据事务还是啥决定的?

| username: TiDBer_Xys4hD00

[TiDB Usage Environment] Testing
[TiDB Version] 7.6.0
[Reproduction Path] TiDB CDC NTF file data address, is the size of a JSON file determined by the transaction or something else?
[Encountered Problem: Problem Phenomenon and Impact]
[Resource Configuration] I noticed that the file size is not written based on transactions and is of random size. Is there a parameter configuration for this? Seeking advice from everyone, as the documentation does not explain this.
[Attachment: Screenshot/Log/Monitoring]

| username: zhaokede | Original post link

The size of the transaction, the JSON encoding method, and the complexity of the data will all have an impact.

| username: TiDBer_Xys4hD00 | Original post link

Are there any parameters that can determine this? Or is it randomly written by the CDC component itself?

| username: Jasper | Original post link

There should be no parameter control, so why pay attention to the size of the JSON file?

| username: ziptoam | Original post link

It seems that you can set the maximum size for a single JSON.