你学习的查询优化器是否如你所预期的那样运行?一个机器学习视角
Is Your Learned Query Optimizer Behaving As You Expect? A Machine Learning Perspective
AI总结:
本文从机器学习视角审视学习型查询优化器(LQO)的评估流程,提出端到端基准测试框架,并通过严格实验表明PostgreSQL在多数划分下优于现有LQO。
摘要:
当前学习型查询优化器(LQO)的兴起,不仅可以由深度学习(DL)方法的持续普遍进步来解释,还可以由查询优化问题(QOP)被直接表述为机器学习(ML)问题来解释。其思想通常是利用更强大的方法(如强化学习)来替代广泛用于求解QOP的动态规划方法。然而,QOP领域如此迅速的“游戏规则改变”不可能不带来后果——除了预测模型开发之外,ML流水线的其他部分仍有很大的改进潜力。例如,不同的LQO对从查询生成训练数据引入了各自的限制,使用任意的训练/验证方法,并在自愿划分的基准查询上进行评估。 在本文中,我们试图通过引入一个新的端到端基准测试框架来标准化用于评估LQO的ML流水线。此外,我们引导读者了解ML流水线中的每个数据科学阶段,并考虑QOP的特殊性,从机器学习视角提供新颖的见解。最后,我们对现有LQO进行了严格的评估,结果表明,根据训练/测试划分的不同,PostgreSQL在几乎所有实验中都优于这些LQO。
英文摘要:
The current boom of learned query optimizers (LQO) can be explained not only by the general continuous improvement of deep learning (DL) methods but also by the straightforward formulation of a query optimization problem (QOP) as a machine learning (ML) one. The idea is often to replace dynamic programming approaches, widespread for solving QOP, with more powerful methods such as reinforcement learning. However, such a rapid "game change" in the field of QOP could not pass without consequences - other parts of the ML pipeline, except for predictive model development, have large improvement potential. For instance, different LQOs introduce their own restrictions on training data generation from queries, use an arbitrary train/validation approach, and evaluate on a voluntary split of benchmark queries. In this paper, we attempt to standardize the ML pipeline for evaluating LQOs by introducing a new end-to-end benchmarking framework. Additionally, we guide the reader through each data science stage in the ML pipeline and provide novel insights from the machine learning perspective, considering the specifics of QOP. Finally, we perform a rigorous evaluation of existing LQOs, showing that PostgreSQL outperforms these LQOs in almost all experiments depending on the train/test splits.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。