From aabad8bf76c672063ff887ab4e69bdd176b29480 Mon Sep 17 00:00:00 2001 From: edwinhzhang Date: Thu, 8 Aug 2024 00:13:28 +0800 Subject: [PATCH 1/2] [Doc] The batch_size parameter has been deprecated and should be replaced by chunk_size. Signed-off-by: edwinhzhang --- docs/en/reference/System_variable.md | 2 +- docs/zh/reference/System_variable.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/reference/System_variable.md b/docs/en/reference/System_variable.md index 502caa4148d92..8434dd9cab2a0 100644 --- a/docs/en/reference/System_variable.md +++ b/docs/en/reference/System_variable.md @@ -166,7 +166,7 @@ Used for MySQL client compatibility. No practical usage. Used for MySQL client compatibility. No practical usage. -### batch_size +### chunk_size * **Description**: Used to specify the number of rows of a single packet transmitted by each node during query execution. The default is 1024, i.e., every 1024 rows of data generated by the source node is packaged and sent to the destination node. A larger number of rows will improve the query throughput in large data volume scenarios, but may increase the query latency in small data volume scenarios. Also, it may increase the memory overhead of the query. We recommend to set `batch_size` between 1024 to 4096. * **Default**: 1024 diff --git a/docs/zh/reference/System_variable.md b/docs/zh/reference/System_variable.md index 5ea467dbcc4d0..e29727dac0f72 100644 --- a/docs/zh/reference/System_variable.md +++ b/docs/zh/reference/System_variable.md @@ -166,7 +166,7 @@ SELECT /*+ SET_VAR * 描述:用于兼容 MySQL 客户端。无实际作用。 * 默认值:true -### batch_size +### chunk_size 用于指定在查询执行过程中,各个节点传输的单个数据包的行数。默认一个数据包的行数为 1024 行,即源端节点每产生 1024 行数据后,打包发给目的节点。较大的行数,会在扫描大数据量场景下提升查询的吞吐率,但可能会在小查询场景下增加查询延迟。同时,也会增加查询的内存开销。建议设置范围 1024 至 4096。 From 3107fcc32701ae38ba1f1d1810c766c09d762685 Mon Sep 17 00:00:00 2001 From: edwinhzhang Date: Thu, 8 Aug 2024 00:18:49 +0800 Subject: [PATCH 2/2] update doc Signed-off-by: edwinhzhang --- docs/en/reference/System_variable.md | 4 ++-- docs/zh/reference/System_variable.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/reference/System_variable.md b/docs/en/reference/System_variable.md index 8434dd9cab2a0..d65657ad43383 100644 --- a/docs/en/reference/System_variable.md +++ b/docs/en/reference/System_variable.md @@ -168,8 +168,8 @@ Used for MySQL client compatibility. No practical usage. ### chunk_size -* **Description**: Used to specify the number of rows of a single packet transmitted by each node during query execution. The default is 1024, i.e., every 1024 rows of data generated by the source node is packaged and sent to the destination node. A larger number of rows will improve the query throughput in large data volume scenarios, but may increase the query latency in small data volume scenarios. Also, it may increase the memory overhead of the query. We recommend to set `batch_size` between 1024 to 4096. -* **Default**: 1024 +* **Description**: Used to specify the number of rows of a single packet transmitted by each node during query execution. The default is 4096, i.e., every 4096 rows of data generated by the source node is packaged and sent to the destination node. A larger number of rows will improve the query throughput in large data volume scenarios, but may increase the query latency in small data volume scenarios. Also, it may increase the memory overhead of the query. We recommend to set `batch_size` between 1024 to 4096. +* **Default**: 4096 ### big_query_profile_threshold diff --git a/docs/zh/reference/System_variable.md b/docs/zh/reference/System_variable.md index e29727dac0f72..8b891deb9f9e1 100644 --- a/docs/zh/reference/System_variable.md +++ b/docs/zh/reference/System_variable.md @@ -168,7 +168,7 @@ SELECT /*+ SET_VAR ### chunk_size -用于指定在查询执行过程中,各个节点传输的单个数据包的行数。默认一个数据包的行数为 1024 行,即源端节点每产生 1024 行数据后,打包发给目的节点。较大的行数,会在扫描大数据量场景下提升查询的吞吐率,但可能会在小查询场景下增加查询延迟。同时,也会增加查询的内存开销。建议设置范围 1024 至 4096。 +用于指定在查询执行过程中,各个节点传输的单个数据包的行数。默认一个数据包的行数为 4096 行,即源端节点每产生 4096 行数据后,打包发给目的节点。较大的行数,会在扫描大数据量场景下提升查询的吞吐率,但可能会在小查询场景下增加查询延迟。同时,也会增加查询的内存开销。建议设置范围 1024 至 4096。 ### big_query_profile_threshold