Skip to content

Commit

Permalink
Introduced 2 new variables (#6159)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfxsd authored Aug 20, 2021
1 parent b0e92f1 commit e2de2a5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,20 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified
- This variable is used to set whether the optimizer executes the optimization operation of pushing down the aggregate function to the position before Join, Projection, and UnionAll.
- When the aggregate operation is slow in query, you can set the variable value to ON.

### tidb_opt_limit_push_down_threshold

- Scope: SESSION | GLOBAL
- Default value: `100`
- Range: `[0, 2147483647]`
- This variable is used to set the threshold that determines whether to push the Limit or TopN operator down to TiKV.
- If the value of the Limit or TopN operator is smaller than or equal to this threshold, these operators are forcibly pushed down to TiKV. This variable resolves the issue that the Limit or TopN operator cannot be pushed down to TiKV partly due to wrong estimation.

### tidb_opt_enable_correlation_adjustment

- Scope: SESSION | GLOBAL
- Default value: `ON`
- This variable is used to control whether the optimizer estimates the number of rows based on column order correlation

### tidb_opt_correlation_exp_factor

- Scope: SESSION | GLOBAL
Expand Down

0 comments on commit e2de2a5

Please sign in to comment.