【24h】

Scalable computation of acyclic joins

机译:可扩展的无循环连接计算

获取原文

摘要

The join operation of relational algebra is a cornerstone of relational database systems. Computing the join of several relations is NP-hard in general, whereas special (and typical) cases are tractable. This paper considers joins having an acyclic join graph, for which current methods initially apply a full reducer to efficiently eliminate tuples that will not contribute to the result of the join. From a worst-case perspective, previous algorithms for computing an acyclic join of k fully reduced relations, occupying a total of n≥k blocks on disk, use Ω((n+z)k) I/Os, where z is the size of the join result in blocks.In this paper we show how to compute the join in a time bound that is within a constant factor of the cost of running a full reducer plus sorting the output. For a broad class of acyclic join graphs this is O(sort(n+z)) I/Os, removing the dependence on k from previous bounds. Traditional methods decompose the join into a number of binary joins, which are then carried out one by one. Departing from this approach, our technique is based on computing the size of certain subsets of the result, and using these sizes to compute the location(s) of each data item in the result.Finally, as an initial study of cyclic joins in the I/O model, we show how to compute a join whose join graph is a 3-cycle, in O(n2/m+sort(n+z)) I/Os, where m is the number of blocks in internal memory.
机译:加入关系代数的操作是关系数据库系统的基石。计算几种关系的连接通常是NP - 普遍,而特殊(典型的)案例是易行的。本文考虑了具有 acyclic连接图的连接,其中当前方法最初应用了完全reducer ,以有效地消除不会为连接结果做出贡献的元组。从最坏情况的角度来看,以前的算法用于计算 k 完全降低的关系,占据了磁盘上的n≥k块,使用ω ((n + z)k) I / O,其中 z 是块的连接结果的大小。本文展示了如何在绑定的时间内计算连接在运行完全减速器加上输出的成本的恒定因素不变。对于广泛的无循环连接图,这是 o (排序(n + z))I / O,从而删除对 k 的依赖以前的界限。传统方法将连接分解为多个二进制连接,然后将其一个逐一执行。从这种方法脱离,我们的技术基于计算结果的某些子集的大小,并使用这些尺寸来计算结果中的每个数据项的位置。最后,作为循环连接的初步研究I / O模型,我们展示了如何计算连接图形是3周期的连接,在 o(n 2 / m +中排序(n + z))I / O,其中 m 是内部存储器中的块数。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号