mysql 官方文档之Optimization( 8.2 Optimizing SQL Statements)
Posted duanzexun
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 官方文档之Optimization( 8.2 Optimizing SQL Statements)相关的知识,希望对你有一定的参考价值。
索引下推
Block Nested-Loop and Batched Key Access Joins
BNL
开启bka
SET optimizer_switch=‘mrr=on,mrr_cost_based=off,batched_key_access=on‘;
Multi-Range Read Optimization
condition filter (目的是更准确的选择前导表)
Engine Condition Pushdown Optimization
Hash Join Optimization(无索引,等值连接)
Beginning with mysql 8.0.18, MySQL employs a hash join for any query for which each join has an equi-join condition and uses no indexes
以上是关于mysql 官方文档之Optimization( 8.2 Optimizing SQL Statements)的主要内容,如果未能解决你的问题,请参考以下文章
mysql 官方文档之Optimization( 8.2 Optimizing SQL Statements)