diff --git a/TOC.md b/TOC.md index d5eff9172e8b..abc0b29431dd 100644 --- a/TOC.md +++ b/TOC.md @@ -116,16 +116,32 @@ + [软件版本](/tune-software-version.md) @张文博 + 配置 + [TiKV 调优](/tune-tikv-performance.md) @刘玮 - + SQL 性能调优 - + [调优基本概念](/sql-optimization-concepts.md) @崔一丁 - + 优化器概览 - + [执行计划](/query-execution-plan.md) @崔一丁 - + [分布式执行计划](/distributed-exectuion-plan.md) @崔一丁 - + 管理执行计划 - + [执行计划绑定](/execution-plan-binding.md) @崔一丁 - + [Optimizer Hints](/optimizer-hints.md) @崔一丁 - + [使用 Index Merge 方式访问表](/index-merge.md) @崔一丁 - + [Join Reorder 算法简介](/join-reorder.md) @崔一丁 + + [SQL 性能调优] @崔一丁 + + [SQL 性能调优概览](/sql-tuning-overview.md) + + [理解 TiDB 执行计划](/query-execution-plan.md) + + [SQL 优化] + + [SQL 优化流程简介](/sql-optimization-concepts.md) + + [逻辑优化] + + [逻辑优化概览](/sql-logical-optimization.md) + + [子查询相关的优化](/subquery-optimization.md) + + [列裁剪](/column-pruning.md) + + [关联子查询去关联](/correlated-subquery-optimization.md) + + [Max/Min 消除](/max-min-eliminate.md) + + [谓词下推](/predicate-push-down.md) + + [分区裁剪](/partition-pruning.md) + + [TopN 和 Limit 下推](/topn-limit-push-down.md) + + [Join Reorder](/join-reorder.md) + + [物理优化] + + [物理优化概览](/sql-physical-optimization.md) + + [索引的选择](/index-choose.md) + + [统计信息介绍](/statistics-intro.md) + + [错误索引的解决方案](/wrong-index-solution.md) + + [Distinct 优化](/agg-distinct-optimization.md) + + [控制执行计划] + + [控制执行计划概览](/control-execution-plan.md) + + [Optimizer Hints](/optimizer-hints.md) + + [执行计划绑定](/execution-plan-binding.md) + + [优化规则及表达式下推的黑名单](/blacklist-control-plan.md) + [性能监控](/monitor-sql-performance.md) @崔一丁 + 教程 + [同城多中心部署](/multi-data-centers-in-one-city-deployment.md)([参考](https://pingcap.com/docs-cn/stable/geo-redundancy-deployment/))@侯召墩 diff --git a/agg-distinct-optimization.md b/agg-distinct-optimization.md new file mode 100644 index 000000000000..e3056c59fa42 --- /dev/null +++ b/agg-distinct-optimization.md @@ -0,0 +1,6 @@ +--- +title: Distinct 优化 +category: performance +--- + +# Distinct 优化 \ No newline at end of file diff --git a/blacklist-control-plan.md b/blacklist-control-plan.md new file mode 100644 index 000000000000..2e8dc118d1b8 --- /dev/null +++ b/blacklist-control-plan.md @@ -0,0 +1,6 @@ +--- +title: 优化规则及表达式下推的黑名单 +category: performance +--- + +# 优化规则及表达式下推的黑名单 \ No newline at end of file diff --git a/column-pruning.md b/column-pruning.md new file mode 100644 index 000000000000..61250864ad89 --- /dev/null +++ b/column-pruning.md @@ -0,0 +1,6 @@ +--- +title: 列裁剪 +category: performance +--- + +# 列裁剪 \ No newline at end of file diff --git a/control-execution-plan.md b/control-execution-plan.md new file mode 100644 index 000000000000..ca8d6e3c9b7d --- /dev/null +++ b/control-execution-plan.md @@ -0,0 +1,12 @@ +--- +title: 控制执行计划 +category: performance +--- + +# 控制执行计划 + +Sub topics: + +- [Optimizer Hints](/optimizer-hints.md) +- [执行计划绑定](/execution-plan-binding.md) +- [优化规则及表达式下推的黑名单](/blacklist-control-plan.md) \ No newline at end of file diff --git a/correlated-subquery-optimization.md b/correlated-subquery-optimization.md new file mode 100644 index 000000000000..6efaf95781c0 --- /dev/null +++ b/correlated-subquery-optimization.md @@ -0,0 +1,6 @@ +--- +title: 关联子查询去关联 +category: performance +--- + +# 关联子查询去关联 diff --git a/index-choose.md b/index-choose.md new file mode 100644 index 000000000000..ddf4dce701aa --- /dev/null +++ b/index-choose.md @@ -0,0 +1,6 @@ +--- +title: 索引的选择 +category: performance +--- + +# 索引的选择 \ No newline at end of file diff --git a/partition-pruning.md b/partition-pruning.md new file mode 100644 index 000000000000..b10ffd9b8c86 --- /dev/null +++ b/partition-pruning.md @@ -0,0 +1,6 @@ +--- +title: 分区裁剪 +category: performance +--- + +# 分区裁剪 \ No newline at end of file diff --git a/predicate-push-down.md b/predicate-push-down.md new file mode 100644 index 000000000000..7844f02584b1 --- /dev/null +++ b/predicate-push-down.md @@ -0,0 +1,6 @@ +--- +title: 谓词下推 +category: performance +--- + +# 谓词下推 \ No newline at end of file diff --git a/query-execution-plan.md b/query-execution-plan.md index 2cb83feb4ebf..3dcfebd9b071 100644 --- a/query-execution-plan.md +++ b/query-execution-plan.md @@ -1,6 +1,6 @@ --- title: 理解 TiDB 执行计划 -category: reference +category: performance aliases: ['/docs-cn/dev/reference/performance/understanding-the-query-execution-plan/'] --- diff --git a/sql-logical-optimization.md b/sql-logical-optimization.md new file mode 100644 index 000000000000..0bf55f574a5b --- /dev/null +++ b/sql-logical-optimization.md @@ -0,0 +1,17 @@ +--- +title: 逻辑优化 +category: performance +--- + +# 逻辑优化 + +sub topics: + +- [子查询相关的优化](/subquery-optimization.md) +- [列裁剪](/column-pruning.md) +- [关联子查询去关联](/correlated-subquery-optimization.md) +- [Max/Min 消除](/max-min-eliminate.md) +- [谓词下推](/predicate-push-down.md) +- [分区裁剪](/partition-pruning.md) +- [TopN 和 Limit 下推](/topn-limit-push-down.md) +- [Join Reorder](/join-reorder.md) \ No newline at end of file diff --git a/sql-optimization-concepts.md b/sql-optimization-concepts.md index 57e7829b12ad..db7166f73ec9 100644 --- a/sql-optimization-concepts.md +++ b/sql-optimization-concepts.md @@ -1,24 +1,30 @@ --- title: SQL 优化流程简介 -category: reference +category: performance aliases: ['/docs-cn/dev/reference/performance/sql-optimizer-overview/'] --- # SQL 优化流程简介 +sub topics: + +- [逻辑优化](/sql-logical-optimization.md) +- [物理优化](/sql-physical-optimization.md) + + \ No newline at end of file diff --git a/sql-physical-optimization.md b/sql-physical-optimization.md new file mode 100644 index 000000000000..08038b14a303 --- /dev/null +++ b/sql-physical-optimization.md @@ -0,0 +1,13 @@ +--- +title: 物理优化 +category: performance +--- + +# 物理优化 + +sub topics: + +- [索引的选择](/index-choose.md) +- [统计信息介绍](/statistics-intro.md) +- [错误索引的解决方案](/wrong-index-solution.md) +- [Distinct 优化](/agg-distinct-optimization.md) diff --git a/sql-tuning-overview.md b/sql-tuning-overview.md new file mode 100644 index 000000000000..8e57ebbef73e --- /dev/null +++ b/sql-tuning-overview.md @@ -0,0 +1,12 @@ +--- +title: SQL 性能调优 +category: performance +--- + +# SQL 调优概览 + +Sub Topics: + +- [理解 TiDB 执行计划](/query-execution-plan.md) +- [SQL 优化流程简介](/sql-optimization-concepts.md) +- [控制执行计划](/control-execution-plan.md) diff --git a/statistics-intro.md b/statistics-intro.md new file mode 100644 index 000000000000..272c5dfc3fa9 --- /dev/null +++ b/statistics-intro.md @@ -0,0 +1,6 @@ +--- +title: 统计信息介绍 +category: performance +--- + +# 统计信息介绍 \ No newline at end of file diff --git a/subquery-optimization.md b/subquery-optimization.md new file mode 100644 index 000000000000..f38bbaf84572 --- /dev/null +++ b/subquery-optimization.md @@ -0,0 +1,6 @@ +--- +title: 子查询相关的优化 +category: performance +--- + +# 子查询相关的优化 \ No newline at end of file diff --git a/topn-limit-push-down.md b/topn-limit-push-down.md new file mode 100644 index 000000000000..b6a688654ecb --- /dev/null +++ b/topn-limit-push-down.md @@ -0,0 +1,6 @@ +--- +title: TopN 和 Limit 下推 +category: performance +--- + +# TopN 和 Limit 下推 \ No newline at end of file diff --git a/wrong-index-solution.md b/wrong-index-solution.md new file mode 100644 index 000000000000..252bca4d8bae --- /dev/null +++ b/wrong-index-solution.md @@ -0,0 +1,6 @@ +--- +title: 错误索引的解决方案 +category: performance +--- + +# 错误索引的解决方案