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

分析运算符的语义及多查询优化算法

Semantics and Multi-Query Optimization Algorithms for the Analyze Operator

University of Ioannina(约阿尼纳大学)

Marios Iakovidis, Panos Vassiliadis

AI总结:

本文提出了一种具有明确语义的ANALYZE运算符,通过多查询优化策略提升分析效率,提出了三种不同优化算法以适应不同场景需求。

摘要:

在寻找数据中的亮点,即有趣的模式时,数据分析师必须提出一组相关查询并手动组合结果。在分析师的目标基于发现意图(例如,将查询结果与同类结果对比,验证模式在数据空间更广泛范围内的有效性等)的情况下,将意图查询运算符整合到分析引擎中可以提高这些分析任务的效率。在本文中,我们引入了具有明确语义的ANALYZE运算符,这是一种新型的立方体查询意图运算符,能够提供数据的360度视图。我们定义ANALYZE查询的语义为一个由五个内部、辅助立方体查询组成的元组,这些查询(a)报告特定数据空间子集的具体细节,该子集是查询规范的一部分,我们称之为原始查询;(b)将结果与同类子空间或兄弟查询的结果进行对比;(c)通过钻取查询在更细粒度的层级上探索数据空间。我们为该运算符引入了正式的查询语义,并理论证明通过将辅助立方体查询合并为更少的查询可以得到相同的结果。这有效地引入了一种多查询优化(MQO)策略来执行ANALYZE查询。我们提出了三种替代算法,(a)无优化的简单执行(Min-MQO),(b)将所有辅助查询合并为一个的完全合并(Max-MQO),以及(c)中间策略Mid-MQO,它仅合并部分辅助查询。我们的实验表明,Mid-MQO在多个上下文中都实现了持续强劲的性能,Min-MQO始终跟随其表现,而Max-MQO在兄弟查询较大且显著重叠时表现最佳。

英文摘要:

In their hunt for highlights, i.e., interesting patterns in the data, data analysts have to issue groups of related queries and manually combine their results. To the extent that the analyst's goals are based on an intention on what to discover (e.g., contrast a query result to peer ones, verify a pattern to a broader range of data in the data space, etc), the integration of intentional query operators in analytical engines can enhance the efficiency of these analytical tasks. In this paper, we introduce, with well-defined semantics, the ANALYZE operator, a novel cube querying intentional operator that provides a 360 view of data. We define the semantics of an ANALYZE query as a tuple of five internal, facilitator cube queries, that (a) report on the specifics of a particular subset of the data space, which is part of the query specification, and to which we refer as the original query, (b) contrast the result with results from peer-subspaces, or sibling queries, and, (c) explore the data space in lower levels of granularity via drill-down queries. We introduce formal query semantics for the operator and we theoretically prove that we can obtain the exact same result by merging the facilitator cube queries into a smaller number of queries. This effectively introduces a multi-query optimization (MQO) strategy for executing an ANALYZE query. We propose three alternative algorithms, (a) a simple execution without optimizations (Min-MQO), (b) a total merging of all the facilitator queries to a single one (Max-MQO), and (c) an intermediate strategy, Mid-MQO, that merges only a subset of the facilitator queries. Our experimentation demonstrates that Mid-MQO achieves consistently strong performance across several contexts, Min-MQO always follows it, and Max-MQO excels for queries where the siblings are sizable and significantly overlap.

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

↑