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. (backport #49540) (#49568)

Signed-off-by: 絵空事スピリット <[email protected]>
Co-authored-by: zhanghe <[email protected]>
Co-authored-by: 絵空事スピリット <[email protected]>
  • Loading branch information
3 people authored Aug 8, 2024
1 parent d921766 commit 0207e3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/en/reference/System_variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ The variables are described **in alphabetical order**. Variables with the `globa

Used for MySQL client compatibility. No practical usage.

### batch_size
### chunk_size

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.
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.

### cbo_enable_low_cardinality_optimize

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 @@ -127,9 +127,9 @@ SELECT /*+ SET_VAR

用于兼容 MySQL 客户端。无实际作用。默认值为 true。

### batch_size
### chunk_size

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

### cbo_enable_low_cardinality_optimize

Expand Down

0 comments on commit 0207e3c

Please sign in to comment.