arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.04814cs.DBcs.AI
收藏

一种基于图神经网络的查询计划表示新技术

A Novel Technique for Query Plan Representation Based on Graph Neural Nets

University of Ottawa(渥太华大学)

Baoming Chang, Amin Kamali, Verena Kantere

AI总结:

针对查询计划表示能力缺乏比较的问题,提出基于门控循环单元聚合双向图神经网络的新型树模型BiGG,显著提升了复杂工作负载下的成本估计和计划选择性能。

摘要:

查询计划的表示学习在数据库管理系统基于机器学习的查询优化器中起着关键作用。为此,文献中提出了特定的模型架构,将树状结构的查询计划转换为下游机器学习模型可学习的格式表示。然而,现有研究很少比较和分析这些树模型的查询计划表示能力及其对整体优化器性能的直接影响。为了解决这个问题,我们进行了比较研究,探讨在相对复杂的工作负载中使用不同的最先进树模型对优化器的成本估计和计划选择性能的影响。此外,我们探索了在查询计划表示任务中使用图神经网络(GNNs)的可能性。我们提出了一种新型树模型BiGG,它采用由门控循环单元(GRUs)聚合的双向GNN,并实验证明,与最先进的树模型相比,BiGG在成本估计任务上提供了显著改进,并在计划选择上表现出相对优异的性能。

英文摘要:

Learning representations for query plans play a pivotal role in machine learning-based query optimizers of database management systems. To this end, particular model architectures are proposed in the literature to transform the tree-structured query plans into representations with formats learnable by downstream machine learning models. However, existing research rarely compares and analyzes the query plan representation capabilities of these tree models and their direct impact on the performance of the overall optimizer. To address this problem, we perform a comparative study to explore the effect of using different state-of-the-art tree models on the optimizer's cost estimation and plan selection performance in relatively complex workloads. Additionally, we explore the possibility of using graph neural networks (GNNs) in the query plan representation task. We propose a novel tree model BiGG employing Bidirectional GNN aggregated by Gated recurrent units (GRUs) and demonstrate experimentally that BiGG provides significant improvements to cost estimation tasks and relatively excellent plan selection performance compared to the state-of-the-art tree models.

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

↑