Skip to content

Commit 0693593

Browse files
authored
planner: Add subquery variables (#21943) (#22028)
1 parent bc0be43 commit 0693593

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
@@ -4305,6 +4305,24 @@ mysql> desc select count(distinct a) from test.t;
43054305
- Default value: `OFF`
43064306
- This variable controls whether to enable the [Cross-database binding](/sql-plan-management.md#cross-database-binding) feature.
43074307

4308+
### tidb_opt_enable_no_decorrelate_in_select <span class="version-mark">New in v8.5.4</span>
4309+
4310+
- Scope: SESSION | GLOBAL
4311+
- Persists to cluster: Yes
4312+
- Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): Yes
4313+
- Type: Boolean
4314+
- Default value: `OFF`
4315+
- 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.
4316+
4317+
### tidb_opt_enable_semi_join_rewrite <span class="version-mark">New in v8.5.4</span>
4318+
4319+
- Scope: SESSION | GLOBAL
4320+
- Persists to cluster: Yes
4321+
- Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No
4322+
- Type: Boolean
4323+
- Default value: `OFF`
4324+
- This variable controls whether the optimizer applies the [`SEMI_JOIN_REWRITE()`](/optimizer-hints.md#semi_join_rewrite) hint for all queries that contain subqueries.
4325+
43084326
### tidb_opt_fix_control <span class="version-mark">New in v6.5.3 and v7.1.0</span>
43094327

43104328
<CustomContent platform="tidb">

0 commit comments

Comments
 (0)