Skip to content

Commit

Permalink
[Fix][Doc] Doc fix (#33916)
Browse files Browse the repository at this point in the history
Co-authored-by: trevon.wang <[email protected]>
  • Loading branch information
corgy-w and trevon.wang authored Dec 4, 2024
1 parent 075e8ae commit 702e00c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ props:
## 注意事项
`max-connections-size-per-query` 配置项的默认值为 1,这意味着每次查询请求在每个数据库实例中只能使用一个连接。如果您调整此参数以启用内存限制模式(详情参见 [内存限制模式](/cn/reference/sharding/execute.cn.md/#内存限制模式)),请确保您使用的数据库 JDBC 实现支持流式查询或能够启用流式查询。例如,在 MySQL 中,需要设置 `statement.setFetchSize(Integer.MIN_VALUE)` 才能实现流式查询。
`max-connections-size-per-query` 配置项的默认值为 1,这意味着每次查询请求在每个数据库实例中只能使用一个连接。如果您调整此参数以启用内存限制模式(详情参见 [内存限制模式](/cn/reference/sharding/execute/#内存限制模式)),请确保您使用的数据库 JDBC 实现支持流式查询或能够启用流式查询。例如,在 MySQL 中,需要设置 `statement.setFetchSize(Integer.MIN_VALUE)` 才能实现流式查询。

## 配置示例

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ props:
## Notes
The default value of the `max-connections-size-per-query` configuration is 1, meaning each query request can only use one connection per database instance. If you adjust this parameter to enable memory-restricted mode (see [Memory-Strictly Mode](/en/reference/sharding/execute.en.md/#memory_strictly-mode) for details), ensure that your database's JDBC implementation supports streaming queries or can enable them. For example, in MySQL, you need to set `statement.setFetchSize(Integer.MIN_VALUE)` to achieve streaming queries.### 优化后的中文描述
The default value of the `max-connections-size-per-query` configuration is 1, meaning each query request can only use one connection per database instance. If you adjust this parameter to enable memory-restricted mode (see [Memory-Strictly Mode](/en/reference/sharding/execute/#memory_strictly-mode) for details), ensure that your database's JDBC implementation supports streaming queries or can enable them. For example, in MySQL, you need to set `statement.setFetchSize(Integer.MIN_VALUE)` to achieve streaming queries.

## Sample

Expand Down

0 comments on commit 702e00c

Please sign in to comment.