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

深度查询优化案例

The Case for Deep Query Optimisation

Jens Dittrich, Joris Nix

摘要:

查询优化(QO)是数据库中最重要的优化问题。QO的目标是在给定的成本模型下计算出最佳的物理方案。在这个过程中,物理操作员被用作规划和优化过程的构建块。在本文中,我们建议深化这一进程。深度查询优化(Deep Query Optimization,DQO)在DQO中,我们打破了“物理”操作符的抽象,以考虑更细粒度的子组件。然后,这些子组件用于在脱机和查询时枚举(子)计划。这个想法引发了几个令人兴奋的研究方向:(1)DQO如何帮助计算比(浅)QO更好的计划,以及成本是多少?(2)DQO可用于预计算和合成数据库操作符和任何其他数据库组件,如物化视图(MAV)。(3)我们确定的飞行视图选择问题(AVSP),即哪些微型飞行器应实现时?本文提出了高层次的思想DQO使用类比启发来自生物学。然后,我们继续质疑“物理”和“物理算子”这两个术语。我们目前的实验与“物理运营商”以前被称为“基于散列的分组”。我们的基准,运营商都独立,以及在DQO启用动态规划的上下文中。最后,我们勾勒出一个DQO研究议程。

英文摘要:

Query Optimisation (QO) is the most important optimisation problem in databases. The goal of QO is to compute the best physical plan under a given cost model. In that process, physical operators are used as building blocks for the planning and optimisation process. In this paper, we propose to deepen that process. We present Deep Query Optimisation (DQO). In DQO, we break up the abstraction of a 'physical' operator to consider more fine-granular subcomponents. These subcomponents are then used to enumerate (sub-)plans both offline and at query time. This idea triggers several exciting research directions: (1) How exactly can DQO help to compute better plans than (shallow) QO and at which costs? (2) DQO can be used to precompute and synthesise database operators and any other database component as Materialised Algorithmic Views (MAVs). (3) We identify the Algorithmic View Selection Problem (AVSP), i.e. which MAVs should be materialised when? This paper presents the high-level idea of DQO using an analogy inspired from biology. Then we proceed to question the terms 'physical' and 'physical operator'. We present experiments with a 'physical operator' formerly known as 'hash-based grouping'. We benchmark that operator both independently as well as in the context of DQO-enabled dynamic programming. We conclude by sketching a DQO research agenda.

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

↑