Quantcast
Channel: FreeDBA.net » optimizer
Browsing all 10 articles
Browse latest View live

My cursor wasn’t shared because of STB_OBJECT_MISMATCH. What does that mean?

I got a question recently about cursor sharing and why a cursor wasn’t shared due to an STB_OBJECT_MISMATCH.I thought the question and subsequent investigation might make an interesting blog post. Let...

View Article



布隆过滤(Bloom Filter)-必须了解的优化器算法

在最近的一次用户升级中,客户将数据库从11.2.0.1升级到了11.2.0.3版本,虽然只是一个小版本的变化,确引起了严重的性能问题。原本正常的SQL执行计划,因为使用了布隆过滤,导致了百倍的性能衰减。在版本升级中,严格的性能测试必不可少,比对SQL执行计划变化,是测试评估的必要步骤。

View Article

Image may be NSFW.
Clik here to view.

MySQL源码:Range和Ref优化的成本评估

在开始介绍index merge/ROR优化之前,打算先介绍MySQL是如何对range/ref做成本评估的。MySQL是基于成本(cost)模型选择执行计划,在多个range,全表扫描,ref之间会选择成本最小的作为最终的执行计划。仍然强烈建议先阅读登博的slide:《查询优化浅析》,文中较为详细的介绍MySQL在range优化时成本的计算。...

View Article

Image may be NSFW.
Clik here to view.

MySQL源码:JOIN顺序选择的复杂度

在看MySQL优化器代码过程中,这应该是相对较简单/代码较清晰的部分了。MySQL优化器有两个自由度:单表访问方式,多表顺序选择。前文已经介绍过MySQL单表访问的一些考量(ref/range等),本文将介绍JOIN在顺序选择上的复杂度分析。...

View Article

Image may be NSFW.
Clik here to view.

index merge的数据结构和成本评估

前面以案例的形式介绍了什么是index merge,以及它的使用场景。本文将介绍index merge实现的主要数据结构以及MySQL如何评估index merge的成本。在开始本文之前,需要先理解Range访问相关的数据结构介绍:SEL_ARG结构,SEL_TREE结构。 [toc] 1. 概述:index merge的数据结构 index merge的主要数据结构仍然是存放在SEL_TREE中:...

View Article


Image may be NSFW.
Clik here to view.

index merge的补充说明

在除了前面介绍的常见index merge的案例(Index Merge Union Access Algorithm)之外,还有一类很少见也比较特殊的index merge,多个索引扫描后进行交集,即 Index Merge...

View Article

Oracle Open World 2013 Call For Papers!

Believe it or not, it's time once again to start thinking about Oracle OpenWorld! The Oracle OpenWorld 2013 call for papers opens March 13th. Oracle customers and partners are encouraged to submit...

View Article

Image may be NSFW.
Clik here to view.

案例:MySQL优化器如何选择索引和JOIN顺序

本文通过一个案例来看看MySQL优化器如何选择索引和JOIN顺序。表结构和数据准备参考本文最后部分"测试环境"。这里主要介绍MySQL优化器的主要执行流程,而不是介绍一个优化器的各个组件(这是另一个话题)。 [toc] 我们知道,MySQL优化器只有两个自由度:顺序选择;单表访问方式;这里将详细剖析下面的SQL,看看MySQL优化器如何做出每一步的选择。 explain select * from...

View Article


Upcoming event: Kscope 13

Kscope 13, is the annual conference of the Oracle Development Tools User Group, taking place  June 23 - June 27, in New Orleans. This is a great conference for Oracle developers and architects,...

View Article


Oracle Database 12c is here!

Oracle Database 12c was officially release today and is now available for download. Along with the software release comes a whole new set of collateral that explains in detail all of the new features...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images