首页> 外文会议>ACM SIGMOD international conference on Management of data >Canonical abstraction for outerjoin optimization
【24h】

Canonical abstraction for outerjoin optimization

机译:外联优化的规范抽象

获取原文
获取外文期刊封面目录资料

摘要

Outerjoins are an important class of joins and are widely used in various kinds of applications. It is challenging to optimize queries that contain outerjoins because outerjoins do not always commute with inner joins. Previous work has studied this problem and provided techniques that allow certain reordering of the join sequences. However, the optimization of outerjoin queries is still not as powerful as that of inner joins.An inner join query can always be canonically represented as a sequence of Cartesian products of all relations, followed by a sequence of selection operations, each applying a conjunct in the join predicates. This canonical abstraction is very powerful because it enables the optimizer to use any join sequence for plan generation. Unfortunately, such a canonical abstraction for outerjoin queries has not been developed. As a result, existing techniques always exclude certain join sequences from planning, which can lead to a severe performance penalty.Given a query consisting ofa sequence of inner and outer joins, we, for the first time, present a canonical abstraction based on three operations: outer Cartesian products, nullification, and best match. Like the inner join abstraction, our outerjoin abstraction permits all join sequences, and preserves the property of both commutativity and transitivity among predicates. This allows us to generate plans that are very desirable for performance reasons but that couldn't be done before. We present an algorithm that produces such a canonical abstraction, and a method that extends an inner-join optimizer to generate plans in an expanded search space. We also describe an efficient implementation of the best match operation using the OLAP functionalities in SQL:1999. Our experimental results show that our technique can significantly improve the performance of outerjoin queries.
机译:外部联接是一类重要的联接,并广泛用于各种应用程序中。优化包含外部联接的查询是一项挑战,因为外部联接并不总是与内部联接相通。先前的工作已经研究了此问题,并提供了允许对连接序列进行某些重新排序的技术。但是,外部联接查询的优化仍然不如内部联接强大。内部联接查询始终可以规范地表示为一系列具有所有关系的笛卡尔积,然后是一系列选择操作,每个操作都在连接谓词。规范抽象非常强大,因为它使优化器可以使用任何连接序列来生成计划。不幸的是,尚未开发出这种用于外部联接查询的规范抽象。结果,现有技术总是将某些联接序列排除在计划之外,这可能会导致严重的性能损失。考虑到由内部联接和外部联接的序列组成的查询,我们首次提出了基于三个操作的规范抽象:外部笛卡尔乘积,无效和最佳匹配。像内部联接抽象一样,我们的外部联接抽象允许所有联接序列,并保留谓词之间可交换性和可传递性的属性。这使我们能够生成出于性能原因非常理想的计划,但以前是无法做到的。我们提出了一种产生这种规范抽象的算法,以及一种扩展内部联接优化器以在扩展的搜索空间中生成计划的方法。我们还使用SQL:1999中的OLAP功能描述了最佳匹配操作的有效实现。我们的实验结果表明,我们的技术可以显着提高externaljoin查询的性能。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号