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

紧凑的结构表示用于高效的查询优化

Succinct Structure Representations for Efficient Query Optimization

EPFL(洛桑联邦理工学院);Nanyang Technological University(南洋理工大学)

Zhekai Jiang, Qichen Wang, Christoph Koch

AI总结:

本文提出了一种紧凑的元分解表示,用于高效查询优化,通过在多项式时间内构造并枚举所有可能的连接树,提升了查询优化效率。

摘要:

结构分解方法为连接评估提供了强大的理论保证,但在实际查询优化器中很少使用。主要原因在于难以将基于成本的计划搜索与基于结构的评估结合。本文通过引入元分解来解决这一问题,这是一种新颖的表示方法,能够简洁地表示所有可能的连接树并高效地枚举它们。元分解可以在多项式时间内构造,其大小与查询大小成线性关系。我们设计了一个高效的多项式时间成本基于优化器,直接基于元分解,而无需显式枚举所有可能的连接树。我们通过一种新的宽度概念来表征由这种方法找到的计划,该概念有效地暗示了任何查询计划的中间结果大小和运行时间理论最坏情况渐进行为。实验结果表明,在实践中,我们类中的计划始终与状态最先进动态规划方法找到的最优计划相媲美,甚至在许多情况下更优,特别是在大型和复杂查询上,同时我们的规划过程运行速度比常规启发式方法快多个数量级。

英文摘要:

Structural decomposition methods offer powerful theoretical guarantees for join evaluation, yet they are rarely used in real-world query optimizers. A major reason is the difficulty of combining cost-based plan search and structure-based evaluation. In this work, we bridge this gap by introducing meta-decompositions for acyclic queries, a novel representation that succinctly represents all possible join trees and enables their efficient enumeration. Meta-decompositions can be constructed in polynomial time and have sizes linear in the query size. We design an efficient polynomial-time cost-based optimizer based directly on the meta-decomposition, without the need to explicitly enumerate all possible join trees. We characterize plans found by this approach using a novel notion of width, which effectively implies the theoretical worst-case asymptotic bounds of intermediate result sizes and running time of any query plan. Experimental results demonstrate that, in practice, the plans in our class are consistently comparable to---even in many cases better than---the optimal ones found by the state-of-the-art dynamic programming approach, especially on large and complex queries, while our planning process runs by orders of magnitude faster, comparable to the time taken by common heuristic methods.

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

↑