BitE:在混合工作负载环境中加速学习型查询优化
BitE : Accelerating Learned Query Optimization in a Mixed-Workload Environment
AI总结:
本文提出 BitE 集成学习模型,利用数据库统计信息与元数据,并通过扩展 ASP 搜索空间、避免默认计划偏差和改进奖励估计,在混合工作负载下提升学习型查询优化性能。
摘要:
尽管近年来人们在将深度强化学习应用于查询优化方面付出了诸多努力,但查询优化器仍是复杂实体,需要针对工作负载和数据集进行手工调优,因此仍有改进空间。近期研究展示的学习型查询优化结果大多集中在大量单一工作负载上,重点在于捕捉特定工作负载的独有特征。当多个工作负载和数据集的不同特征需要被混合并共同学习时,这种做法会带来问题。为此,本文提出 BitE,这是一种新颖的集成学习模型,利用数据库统计信息和元数据来调优学习型查询优化器以提升性能。在此过程中,我们引入多项修订以解决若干挑战:通过扩展提示集(hintsets)来扩大最优 Abstract SQL Plan(抽象 SQL 计划,表示为称为 ASP 的 JSON 对象)的搜索空间;通过利用查询的所有唯一计划来配置经验,使模型远离可能存在偏差的默认计划;我们还偏离传统损失函数,选择一种替代方法来处理奖励的低估和高估问题。在使用相当水平资源的情况下,与现有传统方法相比,我们的模型实现了多 19.6% 的查询获得性能改进,并且性能回退的查询减少 15.8%。
英文摘要:
Although the many efforts to apply deep reinforcement learning to query optimization in recent years, there remains room for improvement as query optimizers are complex entities that require hand-designed tuning of workloads and datasets. Recent research present learned query optimizations results mostly in bulks of single workloads which focus on picking up the unique traits of the specific workload. This proves to be problematic in scenarios where the different characteristics of multiple workloads and datasets are to be mixed and learned together. Henceforth, in this paper, we propose BitE, a novel ensemble learning model using database statistics and metadata to tune a learned query optimizer for enhancing performance. On the way, we introduce multiple revisions to solve several challenges: we extend the search space for the optimal Abstract SQL Plan(represented as a JSON object called ASP) by expanding hintsets, we steer the model away from the default plans that may be biased by configuring the experience with all unique plans of queries, and we deviate from the traditional loss functions and choose an alternative method to cope with underestimation and overestimation of reward. Our model achieves 19.6% more improved queries and 15.8% less regressed queries compared to the existing traditional methods whilst using a comparable level of resources.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。