【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.
机译:关系代数的 join 操作是关系数据库系统的基石。通常,计算多个关系的连接是NP难的,而特殊(和典型)情况很容易处理。本文考虑具有非循环联接图的联接,目前的方法最初是使用 full reducer 来有效地消除对联接结果无贡献的元组。从最坏的情况来看,以前用于计算 k 的非循环连接的算法完全减少了关系,在磁盘上总共占据了n≥k个块,使用Ω ((n + z)k) I / O,其中 z 是连接结果的大小(以块为单位)。在运行一个完整的reducer以及对输出进行分类的成本的恒定因素之内。对于一大类非循环联接图,这是 O (sort (n + z))I / O,从而消除了对 k 的依赖以前的界限。传统方法将联接分解为多个二进制联接,然后逐个执行。不同于这种方法,我们的技术基于计算结果的某些子集的大小,并使用这些大小来计算结果中每个数据项的位置。 I / O模型,我们展示如何在 O(n 2 / m + sort (n + z))I / O,其中 m 是内部存储器中的块数。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号