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

planner: introduce 2 new variables #6796

Merged
merged 5 commits into from
Aug 10, 2021
Merged
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
14 changes: 14 additions & 0 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,20 @@ v5.0 后,用户仍可以单独修改以上系统变量(会有废弃警告)
- 默认值:`OFF`
- 这个变量用来设置优化器是否执行聚合函数下推到 Join,Projection 和 UnionAll 之前的优化操作。当查询中聚合操作执行很慢时,可以尝试设置该变量为 ON。

### `tidb_opt_limit_push_down_threshold`

- 作用域:SESSION | GLOBAL
- 默认值:`100`
- 范围:`[0, 2147483647]`
- 这个变量用来设置将 Limit 和 TopN 算子下推到 TiKV 的阈值。
- 如果 Limit 或者 TopN 的取值小于等于这个阈值,则 Limit 和 TopN 算子会被强制下推到 TiKV。该变量可以解决部分由于估算误差导致 Limit 或者 TopN 无法被下推的问题。

### `tidb_opt_enable_correlation_adjustment`

- 作用域:SESSION | GLOBAL
- 默认值:`ON`
- 这个变量用来控制优化器是否开启交叉估算。

### `tidb_opt_correlation_exp_factor`

- 作用域:SESSION | GLOBAL
Expand Down