arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1604.01848cs.DB
收藏

并行查询处理的最坏情况优化算法

Worst-Case Optimal Algorithms for Parallel Query Processing

Paul Beame, Paraschos Koutris, Dan Suciu

摘要:

本文研究了在$p$服务器上并行计算大型数据库上的合取查询问题的通信复杂性。与以前的工作,在通信上的上限和下限被指定为特定的数据结构(无论是数据没有歪斜,或数据与特定类型的歪斜),在这项工作中,我们专注于最坏情况下的通信成本分析。目标是找到最坏情况下的最优并行算法,类似于[18]中针对顺序算法的工作。我们首先表明,对于一个单一的回合,我们可以获得一个最佳的最坏情况下的算法。当所有关系的大小都等于$M$时,合取查询$q$的最优负载为$O(M/p^{1/ψ^*})$,其中$ψ^*$是一个新的与查询相关的量,称为边拟填充数,它不同于查询超图的边填充数和边覆盖数.对于多轮,我们提出的算法是最佳的几类查询。最后,我们展示了一个令人惊讶的连接到外部存储器模型,它允许我们翻译并行算法到外部存储器算法。这种技术使我们能够恢复(在一个多对数因子)的I/O计算连接查询的复杂性的几个最近的结果,并获得其他类别的查询的最佳算法。

英文摘要:

In this paper, we study the communication complexity for the problem of computing a conjunctive query on a large database in a parallel setting with $p$ servers. In contrast to previous work, where upper and lower bounds on the communication were specified for particular structures of data (either data without skew, or data with specific types of skew), in this work we focus on worst-case analysis of the communication cost. The goal is to find worst-case optimal parallel algorithms, similar to the work of [18] for sequential algorithms. We first show that for a single round we can obtain an optimal worst-case algorithm. The optimal load for a conjunctive query $q$ when all relations have size equal to $M$ is $O(M/p^{1/ψ^*})$, where $ψ^*$ is a new query-related quantity called the edge quasi-packing number, which is different from both the edge packing number and edge cover number of the query hypergraph. For multiple rounds, we present algorithms that are optimal for several classes of queries. Finally, we show a surprising connection to the external memory model, which allows us to translate parallel algorithms to external memory algorithms. This technique allows us to recover (within a polylogarithmic factor) several recent results on the I/O complexity for computing join queries, and also obtain optimal algorithms for other classes of queries.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑