Skip to content

Commit 9457487

Browse files
planner: Add subquery variables (#21943)
1 parent 87b84bb commit 9457487

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

system-variables.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4343,6 +4343,24 @@ mysql> desc select count(distinct a) from test.t;
43434343
- Default value: `OFF`
43444344
- This variable controls whether to enable the [Cross-database binding](/sql-plan-management.md#cross-database-binding) feature.
43454345

4346+
### tidb_opt_enable_no_decorrelate_in_select <span class="version-mark">New in v8.5.4 and v9.0.0</span>
4347+
4348+
- Scope: SESSION | GLOBAL
4349+
- Persists to cluster: Yes
4350+
- Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): Yes
4351+
- Type: Boolean
4352+
- Default value: `OFF`
4353+
- This variable controls whether the optimizer applies the [`NO_DECORRELATE()`](/optimizer-hints.md#no_decorrelate) hint for all queries that contain a subquery in the `SELECT` list.
4354+
4355+
### tidb_opt_enable_semi_join_rewrite <span class="version-mark">New in v8.5.4 and v9.0.0</span>
4356+
4357+
- Scope: SESSION | GLOBAL
4358+
- Persists to cluster: Yes
4359+
- Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No
4360+
- Type: Boolean
4361+
- Default value: `OFF`
4362+
- This variable controls whether the optimizer applies the [`SEMI_JOIN_REWRITE()`](/optimizer-hints.md#semi_join_rewrite) hint for all queries that contain subqueries.
4363+
43464364
### tidb_opt_fix_control <span class="version-mark">New in v6.5.3 and v7.1.0</span>
43474365

43484366
<CustomContent platform="tidb">

0 commit comments

Comments
 (0)