The Case for Deep Query Optimisation

Jens Dittrich, Joris Nix
8/22/2019
cs.DB

Official code: BigDataAnalyticsGroup/Deep-Query-Optimization (5 stars, Jupyter Notebook, last commit 2020-01-10).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

The Case for Deep Query Optimisation

52Jupyter Notebook, C++Aug 22, 20196 years agoNOASSERTION

Similar Papers

Cite this paper

@article{dittrich2019case,
  title  = {The Case for Deep Query Optimisation},
  author = {Jens Dittrich and Joris Nix},
  year   = {2019},
  eprint = {1908.08341},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1908.08341}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1908.08341.svg)](https://codeofpaper.com/paper/1908.08341)

Discussion