Skip to content

Commit e437ed5

Browse files
author
github-actions
committed
update MD by dispatch event pingcap/docs master
1 parent 167bb15 commit e437ed5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

markdown-pages/en/tidb/master/system-variables.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4564,6 +4564,17 @@ mysql> desc select count(distinct a) from test.t;
45644564
- This variable is used to control the selection of the TiDB Join Reorder algorithm. When the number of nodes participating in Join Reorder is greater than this threshold, TiDB selects the greedy algorithm, and when it is less than this threshold, TiDB selects the dynamic programming algorithm.
45654565
- Currently, for OLTP queries, it is recommended to keep the default value. For OLAP queries, it is recommended to set the variable value to 10~15 to get better connection orders in OLAP scenarios.
45664566

4567+
### tidb_opt_join_reorder_through_sel <span class="version-mark">New in v8.5.6 and v9.0.0</span>
4568+
4569+
- Scope: SESSION | GLOBAL
4570+
- Persists to cluster: Yes
4571+
- Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): Yes
4572+
- Type: Boolean
4573+
- Default value: `OFF`
4574+
- This variable improves Join Reorder optimization for certain multi-table join queries. If you set it to `ON`, the optimizer includes filter conditions (`Selection`) between multiple consecutive joins into the candidate range for Join Reorder optimization, provided safety conditions are met. When rebuilding the join tree, the optimizer pushes these conditions down to more suitable positions, which lets more tables participate in Join Reorder optimization.
4575+
- If you observe performance regressions or unstable execution plans after enabling this variable, set it to `OFF` to disable this feature.
4576+
- To ensure the evaluation semantics of expressions remain unchanged, the optimizer does not perform condition pushdown even when this variable is enabled if the filter conditions contain non-deterministic functions or functions with side effects (such as `RAND()`).
4577+
45674578
### tidb_opt_limit_push_down_threshold
45684579

45694580
- Scope: SESSION | GLOBAL

0 commit comments

Comments
 (0)