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

使用查询计划编码器的数据库查询特征化

Database Workload Characterization with Query Plan Encoders

University of Utah(犹他大学)

Debjyoti Paul, Jie Cao, Feifei Li, Vivek Srikumar

摘要:

智能数据库正在采用人工智能(AI)技术来实现{\em实例优化},未来,数据库将在其核心组件中提供预打包的AI模型。原因是每个数据库都运行在不同的工作负载上,需要特定的资源和设置来实现最佳性能。它提示了全面了解系统中运行的工作负载及其特性的必要性,我们称之为工作负载表征。为了解决这个工作负载表征问题,我们提出了我们的查询计划编码器,学习基本功能和它们的相关性查询计划。我们的预训练编码器独立地捕获查询的{\em结构}和{\em计算性能}。我们证明了我们的预训练编码器能够适应加速迁移学习过程的工作负载。我们对具有多个下游任务的结构编码器和性能编码器进行了独立评估。对于我们的查询计划编码器的总体评估,我们架构了两个下游任务(i)查询延迟预测和(ii)查询分类。这些任务显示了基于功能的工作负载表征的重要性。我们还对单个编码器进行了广泛的实验,以验证表示学习和领域适应性的有效性。

英文摘要:

Smart databases are adopting artificial intelligence (AI) technologies to achieve {\em instance optimality}, and in the future, databases will come with prepackaged AI models within their core components. The reason is that every database runs on different workloads, demands specific resources, and settings to achieve optimal performance. It prompts the necessity to understand workloads running in the system along with their features comprehensively, which we dub as workload characterization. To address this workload characterization problem, we propose our query plan encoders that learn essential features and their correlations from query plans. Our pretrained encoders capture the {\em structural} and the {\em computational performance} of queries independently. We show that our pretrained encoders are adaptable to workloads that expedite the transfer learning process. We performed independent assessments of structural encoder and performance encoders with multiple downstream tasks. For the overall evaluation of our query plan encoders, we architect two downstream tasks (i) query latency prediction and (ii) query classification. These tasks show the importance of feature-based workload characterization. We also performed extensive experiments on individual encoders to verify the effectiveness of representation learning and domain adaptability.

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

↑