arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.00749cs.DBcs.AI
收藏

CONCERTO:复杂查询执行机制感知的学习型代价估计

CONCERTO: Complex Query Execution Mechanism-Aware Learned Cost Estimation

Harbin Institute of Technology(哈尔滨工业大学)

Kaixin Zhang, Hongzhi Wang, Kunkai Gu, Ziqi Li, Chunyu Zhao, Yingze Li, Yu Yan

AI总结:

针对现有查询性能预测方法忽略复杂执行机制的问题,提出CONCERTO,通过为算子建模、构建DAG并利用GAT和TCN校准与聚合代价,实现更准确的查询性能预测。

摘要:

随着大规模数据分析需求的不断增长,许多数据库管理系统(DBMS)采用了复杂的底层查询执行机制,包括向量化算子、并行执行和动态流水线修改。然而,针对这些复杂执行机制及其交互作用,目前仍缺乏有针对性的查询性能预测(QPP)方法,因为大多数现有方法侧重于传统的树形查询计划和静态串行执行器。为了应对这一挑战,本文提出了CONCERTO,一种复杂查询执行机制感知的学习型代价估计方法。CONCERTO首先为每个物理算子建立独立的资源代价模型。然后,它构建一个有向无环图(DAG),该图由数据流树主干和并发算子之间的资源竞争关系组成。在使用带有额外注意力机制的图注意力网络(GATs)校准并行算子执行的代价影响后,CONCERTO通过时间卷积网络(TCNs)提取并聚合代价向量树,最终实现有效的查询性能预测。实验结果表明,CONCERTO比现有方法实现了更高的预测精度。

英文摘要:

With the growing demand for massive data analysis, many DBMSs have adopted complex underlying query execution mechanisms, including vectorized operators, parallel execution, and dynamic pipeline modifications. However, there remains a lack of targeted Query Performance Prediction (QPP) methods for these complex execution mechanisms and their interactions, as most existing approaches focus on traditional tree-shaped query plans and static serial executors. To address this challenge, this paper proposes CONCERTO, a Complex query executiON meChanism-awaE leaRned cosT estimatiOn method. CONCERTO first establishes independent resource cost models for each physical operator. It then constructs a Directed Acyclic Graph (DAG) consisting of a dataflow tree backbone and resource competition relationships among concurrent operators. After calibrating the cost impact of parallel operator execution using Graph Attention Networks (GATs) with additional attention mechanisms, CONCERTO extracts and aggregates cost vector trees through Temporal Convolutional Networks (TCNs), ultimately achieving effective query performance prediction. Experimental results demonstrate that CONCERTO achieves higher prediction accuracy than existing methods.

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

↑