Skip to content

Commit ba7a9cf

Browse files
authored
Pointing semi join to a page that actually mentions it. (#21871)
1 parent ba15c6e commit ba7a9cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

subquery-optimization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Subqueries usually appear in the following situations:
1717

1818
Sometimes a subquery contains non-subquery columns, such as `select * from t where t.a in (select * from t2 where t.b=t2.b)`. The `t.b` column in the subquery does not belong to the subquery, it is introduced from the outside of the subquery. This kind of subquery is usually called a "correlated subquery", and the externally introduced column is called a "correlated column". For optimizations about correlated subquery, see [Decorrelation of correlated subquery](/correlated-subquery-optimization.md). This article focuses on subqueries that do not involve correlated columns.
1919

20-
By default, subqueries use `semi join` mentioned in [Understanding TiDB Execution Plan](/explain-overview.md) as the execution method. For some special subqueries, TiDB do some logical rewrite to get better performance.
20+
By default, subqueries use `semi join` mentioned in [Semi join (correlated subquery)](/explain-subqueries.md#semi-join-correlated-subquery) as the execution method. For some special subqueries, TiDB performs some logical rewrites to get better performance.
2121

2222
## `... < ALL (SELECT ... FROM ...)` or `... > ANY (SELECT ... FROM ...)`
2323

0 commit comments

Comments
 (0)