Skip to content

Commit

Permalink
cherry pick #4771 to release-4.0 (#4772)
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
  • Loading branch information
ti-srebot and TomShawn authored Nov 2, 2020
1 parent cc24fba commit 9370e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql-logical-optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ aliases: ['/docs-cn/stable/sql-logical-optimization/','/docs-cn/v4.0/sql-logical

# 逻辑优化

本章节将对一些比较关键的逻辑改写进行说明,帮助大家理解 TiDB 如何生成最终的查询计划。比如在 TiDB 输入 `select * from t where t.a in (select * from t1 where t1.b=t.b)` 这个查询时,在最终的执行计划中将看不到这个 `t.a in (select t1.a from t1 where t1.b=t.b` 这个 `IN` 子查询的存在,这便是因为 TiDB 对这里进行了一些改写。
本章节将对一些比较关键的逻辑改写进行说明,帮助大家理解 TiDB 如何生成最终的查询计划。比如在 TiDB 输入 `select * from t where t.a in (select t1.a from t1 where t1.b=t.b)` 这个查询时,在最终的执行计划中将看不到这个 `t.a in (select t1.a from t1 where t1.b=t.b)` 这个 `IN` 子查询的存在,这便是因为 TiDB 对这里进行了一些改写。

本章节会介绍如下几个关键改写:

Expand Down
2 changes: 1 addition & 1 deletion system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ set tidb_query_log_max_len = 20;

### `tidb_skip_isolation_level_check`

- 作用域:SESSION
- 作用域:SESSION | GLOBAL

- 默认值:0

Expand Down

0 comments on commit 9370e9d

Please sign in to comment.