Skip to content

Commit

Permalink
[Doc] The batch_size parameter has been deprecated and should be repl…
Browse files Browse the repository at this point in the history
…aced by chunk_size. (#49540)

Signed-off-by: edwinhzhang <[email protected]>
(cherry picked from commit 21a67ed)
  • Loading branch information
zhangheihei authored and mergify[bot] committed Aug 8, 2024
1 parent b1566d0 commit ce72344
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/en/reference/System_variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ 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
* **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

Expand Down
4 changes: 2 additions & 2 deletions docs/zh/reference/System_variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ SELECT /*+ SET_VAR
* 描述:用于兼容 MySQL 客户端。无实际作用。
* 默认值:true

### batch_size
### chunk_size

用于指定在查询执行过程中,各个节点传输的单个数据包的行数。默认一个数据包的行数为 1024 行,即源端节点每产生 1024 行数据后,打包发给目的节点。较大的行数,会在扫描大数据量场景下提升查询的吞吐率,但可能会在小查询场景下增加查询延迟。同时,也会增加查询的内存开销。建议设置范围 10244096
用于指定在查询执行过程中,各个节点传输的单个数据包的行数。默认一个数据包的行数为 4096 行,即源端节点每产生 4096 行数据后,打包发给目的节点。较大的行数,会在扫描大数据量场景下提升查询的吞吐率,但可能会在小查询场景下增加查询延迟。同时,也会增加查询的内存开销。建议设置范围 10244096

### big_query_profile_threshold

Expand Down

0 comments on commit ce72344

Please sign in to comment.