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

多维关系数据的相似分组算子

Similarity Group-by Operators for Multi-dimensional Relational Data

Mingjie Tang, Ruby Y. Tahboub, Walid G. Are, Mikhail J. Atallah, Qutaibah M. Malluhi, Mourad Ouzzani, Yasin N. Silva

摘要:

SQL group-by运算符在汇总和聚合数据分析堆栈中的大型数据集方面发挥着重要作用。虽然基于相等的标准group-by运算符在许多应用程序中非常有用,但允许相似性感知分组可以提供对真实数据的更真实视图,从而可以获得更好的洞察力。SimilaritySQL-basedGroup-By操作符(简称SGB)通过将具有相似但不一定相等的值的数据分组来扩展标准SQLGroup-by的语义。虽然现有的基于相似性的分组运算符有效地实现了这种近似语义,但它们主要关注一维属性,并独立地处理多维属性。然而,诸如空间数据中的相关属性被独立地处理,因此,多维空间中的组不能被正确地检测。为了解决这个问题,我们引入了两个新的SGB运营商的多维数据。第一个操作符是团(或所有距离)SGB,其中组中的所有元组彼此之间的距离都在一定距离内。第二个操作符是到任意SGB的距离,其中如果元组与组中的任何其他元组在某个距离内,则元组属于组。我们在PostgreSQL中实现并测试了新的SGB运算符及其算法。这些操作符引入的开销被证明是最小的,并且执行时间与标准Group-by相当。基于TPC-H和社会签到数据的实验研究表明,所提出的算法可以实现高达三个数量级的性能增强基线方法,以解决同样的问题。

英文摘要:

The SQL group-by operator plays an important role in summarizing and aggregating large datasets in a data analytic stack.While the standard group-by operator, which is based on equality, is useful in several applications, allowing similarity aware grouping provides a more realistic view on real-world data that could lead to better insights. The Similarity SQL-based Group-By operator (SGB, for short) extends the semantics of the standard SQL Group-by by grouping data with similar but not necessarily equal values. While existing similarity-based grouping operators efficiently materialize this approximate semantics, they primarily focus on one-dimensional attributes and treat multidimensional attributes independently. However, correlated attributes, such as in spatial data, are processed independently, and hence, groups in the multidimensional space are not detected properly. To address this problem, we introduce two new SGB operators for multidimensional data. The first operator is the clique (or distance-to-all) SGB, where all the tuples in a group are within some distance from each other. The second operator is the distance-to-any SGB, where a tuple belongs to a group if the tuple is within some distance from any other tuple in the group. We implement and test the new SGB operators and their algorithms inside PostgreSQL. The overhead introduced by these operators proves to be minimal and the execution times are comparable to those of the standard Group-by. The experimental study, based on TPC-H and a social check-in data, demonstrates that the proposed algorithms can achieve up to three orders of magnitude enhancement in performance over baseline methods developed to solve the same problem.

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

↑