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

带Theta Joins的合取连接Under Updates

Conjunctive Queries with Theta Joins Under Updates

Muhammad Idris, Martín Ugarte, Stijn Vansummeren, Hannes Voigt, Wolfgang Lehner

摘要:

诸如复合事件识别(CER)和实时分析等现代应用领域需要能够在高更新率下动态刷新查询结果。解决这个问题的传统方法是基于子结果的物化(以避免重新计算)或子结果的重新计算(以避免物化的空间开销)。这两种技术最近被证明是次优的:而不是具体化的结果和子结果,可以维护一个数据结构,支持更新下的有效维护,并可以快速枚举完整的查询输出,以及单次更新下产生的变化。不幸的是,这些数据结构仅针对由等价连接组成的聚合连接查询而开发,限制了它们在诸如CER等领域中的适用性,其中时态连接是常见的。在本文中,我们提出了一种新的方法,用于动态评估查询与多路θ-连接下的更新,有效地避免物化和重新计算的结果,同时支持广泛的应用。要做到这一点,我们推广动态Yannakakis,一个算法,用于动态处理非循环equi-join查询。在串联,和独立的兴趣,我们推广的概念,无环性和自由连接到任意θ-连接,并显示如何计算相应的连接树。我们实例化我们的框架的情况下,θ-连接只由等式和不等式和实验比较我们的算法,以国家的最先进的CER系统,以及增量视图维护引擎。我们的方法始终优于竞争对手的系统,在时间和内存消耗方面都有两个数量级的改进。

英文摘要:

Modern application domains such as Composite Event Recognition (CER) and real-time Analytics require the ability to dynamically refresh query results under high update rates. Traditional approaches to this problem are based either on the materialization of subresults (to avoid their recomputation) or on the recomputation of subresults (to avoid the space overhead of materialization). Both techniques have recently been shown suboptimal: instead of materializing results and subresults, one can maintain a data structure that supports efficient maintenance under updates and can quickly enumerate the full query output, as well as the changes produced under single updates. Unfortunately, these data structures have been developed only for aggregate-join queries composed of equi-joins, limiting their applicability in domains such as CER where temporal joins are commonplace. In this paper, we present a new approach for dynamically evaluating queries with multi-way theta-joins under updates that is effective in avoiding both materialization and recomputation of results, while supporting a wide range of applications. To do this we generalize Dynamic Yannakakis, an algorithm for dynamically processing acyclic equi-join queries. In tandem, and of independent interest, we generalize the notions of acyclicity and free-connexity to arbitrary theta-joins and show how to compute corresponding join trees. We instantiate our framework to the case where theta-joins are only composed of equalities and inequalities and experimentally compare our algorithm to state of the art CER systems as well as incremental view maintenance engines. Our approach performs consistently better than the competitor systems with up to two orders of magnitude improvements in both time and memory consumption.

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

↑