Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sysvar: stabilize tidb_store_batch_size #12923

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -3195,14 +3195,10 @@ Query OK, 0 rows affected, 1 warning (0.00 sec)

### `tidb_store_batch_size`

> **警告:**
>
> 目前 `tidb_store_batch_size` 尚未稳定,未来此变量可能会删除,不建议业务依赖此变量或在生产环境中使用,请保留默认值。

- 作用域:SESSION | GLOBAL
- 是否持久化到集群:是
- 类型:整数型
- 默认值:`0`
- 默认值:`4`
- 范围:`[0, 25000]`
- 设置 `IndexLookUp` 算子回表时多个 Coprocessor Task 的 batch 大小。`0` 代表不使用 batch。当 `IndexLookUp` 算子的回表 Task 数量特别多,出现极长的慢查询时,可以适当调大该参数以加速查询。

Expand Down Expand Up @@ -3384,7 +3380,7 @@ Query OK, 0 rows affected, 1 warning (0.00 sec)
- 是否持久化到集群:是
- 默认值:`500`
- 范围:`[1, 10240]`
- 这个变量用于设置 TTL 任务中用来扫描过期数据的每个 `SELECT` 语句的 `LIMIT` 的值。
- 这个变量用于设置 TTL 任务中用来扫描过期数据的每个 `SELECT` 语句的 `LIMIT` 的值。

### `tidb_ttl_scan_worker_count` <span class="version-mark">从 v6.5.0 版本开始引入</span>

Expand Down