...
首页> 外文期刊>IEEE Transactions on Knowledge and Data Engineering >Optimization and evaluation of disjunctive queries
【24h】

Optimization and evaluation of disjunctive queries

机译:优化和评估析取查询

获取原文
获取原文并翻译 | 示例
           

摘要

It is striking that the optimization of disjunctive queries-i.e. those which contain at least one OR-connective in the query predicate-has been vastly neglected in the literature, as well as in commercial systems. In this paper, we propose a novel technique, called bypass processing, for evaluating such disjunctive queries. The bypass processing technique is based on new selection and join operators that produce two output streams: the TRUE-stream with tuples satisfying the selection (join) predicate and the FALSE-stream with tuples not satisfying the corresponding predicate. Splitting the tuple streams in this way enables us to "bypass" costly predicates whenever the "fate" of the corresponding tuple (stream) can be determined without evaluating this predicate. In the paper, we show how to systematically generate bypass evaluation plans utilizing a bottom-up building-block approach. We show that our evaluation technique allows us to incorporate the standard SQL semantics of null values. For this, we devise two different approaches: one is based on explicitly incorporating three-valued logic into the evaluation plans; the other one relies on two-valued logic by "moving" all negations to atomic conditions of the selection predicate. We describe how to extend an iterator-based query engine to support bypass evaluation with little extra overhead. This query engine was used to quantitatively evaluate the bypass evaluation plans against the traditional evaluation techniques utilizing a CNFor DNF-based query predicate.
机译:令人惊讶的是,析取查询的优化-即在查询谓词中至少包含一个OR-连接的那些词在文献以及商业系统中都被大大地忽略了。在本文中,我们提出了一种称为旁路处理的新颖技术,用于评估这种析取查询。旁路处理技术基于新的选择和联接运算符,该运算符产生两个输出流:具有满足选择(联接)谓词的元组的TRUE流和具有不满足对应谓词的元组的FALSE流。以这种方式拆分元组流使我们能够在无需评估此谓词的情况下确定相应元组(流)的“命运”时“绕开”代价高昂的谓词。在本文中,我们展示了如何使用自下而上的构建块方法来系统地生成旁路评估计划。我们证明了我们的评估技术使我们能够合并空值的标准SQL语义。为此,我们设计了两种不同的方法:一种是基于将三值逻辑明确纳入评估计划中;另一种是基于三值逻辑。另一个依赖于二值逻辑,方法是将所有否定“移动”到选择谓词的原子条件。我们描述了如何扩展基于迭代器的查询引擎以支持旁路评估而几乎没有额外的开销。该查询引擎用于利用基于CNFor DNF的查询谓词相对于传统评估技术对旁路评估计划进行量化评估。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号