Subquery Optimizations Map

简介:

以下是显示SQL语言中允许的所有类型的子查询的映射,以及可用于处理它们的优化程序策略。

  • 无色区域表示不同种类的子查询,例如:

    • from x IN (select xx)
    • from () xxx
    • ...
  • 每个未着色区域的大小大致对应于该种子查询的重要性(即经常使用)的大小。 例如,x IN(SELECT ...)查询是最重要的,而EXISTS(SELECT ...)是相对不重要的
  • 彩色区域表示应用于处理各种子查询的优化/执行策略。
  • 底部的颜色表示它可用的是哪个版本的MySQL / MariaDB(请参阅下面的图例)
    image

在进行优化时,MariaDB不会评估昂贵的子查询(这意味着,EXPLAIN总是很快)。 MySQL 5.6在这方面取得了一些进展,但其优化器仍然会评估某些种类的子查询(例如,用于范围谓词的标量上下文子查询)

目录
打赏
0
0
0
0
32444
分享
相关文章
|
11月前
split(), reverse(),join()等函数用法
split(), reverse(),join()等函数用法
Stream方法使用-filter、sorted、distinct、limit
Stream方法使用-filter、sorted、distinct、limit
197 0
|
5月前
|
SQL
OUTER JOIN
【11月更文挑战第08天】
45 2
解决only integer scalar arrays can be converted to a scalar index
解决only integer scalar arrays can be converted to a scalar index
457 0
解决only integer scalar arrays can be converted to a scalar index
C# LINQ 详解 From Where Select Group Into OrderBy Let Join
目录 1. 概述 2. from子句 3. where子句 4. select子句 5. group子句 6. into子句 7. 排序子句 8. let子句 9. join子句 10. 小结 1. 概述     LINQ的全称是Language Integrated Query,中文译成“语言集成查询”。
2194 0
LeetCode 341. Flatten Nested List Iterator
给定一个嵌套的整型列表。设计一个迭代器,使其能够遍历这个整型列表中的所有整数。 列表中的项或者为一个整数,或者是另一个列表。
84 0
LeetCode 341. Flatten Nested List Iterator
4.1、Array数组常用的方法(map、push、sort、filter、join、split)
4.1、Array数组常用的方法(map、push、sort、filter、join、split)
175 0
内置函数 -- filter 和 map
Construct an iterator from those elements of iterable for which function returns true. iterable may be either a sequence, a container which supports iteration, or an iterator. If function is None, the identity function is assumed, that is, all elements of iterable that are false are removed.
141 0
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre
427 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等