# Plan-Structured Deep Neural Network Models for Query Performance   Prediction

**Authors:** Ryan Marcus, Olga Papaemmanouil

arXiv: 1902.00132 · 2020-04-09

## TL;DR

This paper introduces a plan-structured neural network model that automatically learns complex query performance patterns, outperforming existing methods in predicting query latency without manual feature engineering.

## Contribution

A novel plan-structured neural network architecture that adapts to any query plan structure and improves prediction accuracy over state-of-the-art methods.

## Key findings

- Outperforms existing query performance prediction models
- Automatically learns complex operator interactions
- Reduces training overhead with optimizations

## Abstract

Query performance prediction, the task of predicting the latency of a query, is one of the most challenging problem in database management systems. Existing approaches rely on features and performance models engineered by human experts, but often fail to capture the complex interactions between query operators and input relations, and generally do not adapt naturally to workload characteristics and patterns in query execution plans. In this paper, we argue that deep learning can be applied to the query performance prediction problem, and we introduce a novel neural network architecture for the task: a plan-structured neural network. Our approach eliminates the need for human-crafted feature selection and automatically discovers complex performance models both at the operator and query plan level. Our novel neural network architecture can match the structure of any optimizer-selected query execution plan and predict its latency with high accuracy. We also propose a number of optimizations that reduce training overhead without sacrificing effectiveness. We evaluated our techniques on various workloads and we demonstrate that our plan-structured neural network can outperform the state-of-the-art in query performance prediction.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1902.00132/full.md

## Figures

19 figures with captions in the complete paper: https://tomesphere.com/paper/1902.00132/full.md

## References

59 references — full list in the complete paper: https://tomesphere.com/paper/1902.00132/full.md

---
Source: https://tomesphere.com/paper/1902.00132