Database Workload Characterization with Query Plan Encoders

Debjyoti Paul, Jie Cao, Feifei Li, Vivek Srikumar
5/26/2021
cs.DBcs.AI

Official code: debjyoti385/jackpine (7 stars, GPL-2.0, last commit 2022-09-02). 1 more implementation below.

Abstract

Smart databases are adopting artificial intelligence (AI) technologies to achieve {\em instance optimality}, and in the future, databases will come with prepackaged AI models within their core components. The reason is that every database runs on different workloads, demands specific resources, and settings to achieve optimal performance. It prompts the necessity to understand workloads running in the system along with their features comprehensively, which we dub as workload characterization. To address this workload characterization problem, we propose our query plan encoders that learn essential features and their correlations from query plans. Our pretrained encoders capture the {\em structural} and the {\em computational performance} of queries independently. We show that our pretrained encoders are adaptable to workloads that expedite the transfer learning process. We performed independent assessments of structural encoder and performance encoders with multiple downstream tasks. For the overall evaluation of our query plan encoders, we architect two downstream tasks (i) query latency prediction and (ii) query classification. These tasks show the importance of feature-based workload characterization. We also performed extensive experiments on individual encoders to verify the effectiveness of representation learning and domain adaptability.

View on arXivView PDF

Code Implementations(2)

GPL-2.0

JackPine - A Geospatial Benchmark (Version 2.0)

76Java, ShellDec 15, 20194 years agoGPL-2.0
benchmarksgeospatialpostgresql

Automated scripts for Database Benchmarks on Ubuntu 18.04/16.04, PostgreSQL 10, PostGIS 2.4, PgRouting 3.0

41Shell, PythonOct 30, 20194 years ago

Similar Papers

Cite this paper

@article{paul2021database,
  title  = {Database Workload Characterization with Query Plan Encoders},
  author = {Debjyoti Paul and Jie Cao and Feifei Li and Vivek Srikumar},
  year   = {2021},
  eprint = {2105.12287},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.12287}
}

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/2105.12287.svg)](https://codeofpaper.com/paper/2105.12287)

Discussion