Guided automated learning for query workload re-optimization

被引:5
|
作者
Damasio, Guilherme [1 ,3 ]
Corvinelli, Vincent [4 ]
Godfrey, Parke [2 ,3 ]
Mierzejewski, Piotr [4 ]
Mihaylov, Alexandar [1 ,3 ]
Szlichta, Jaroslaw [1 ,3 ]
Zuzarte, Calisto [4 ]
机构
[1] Ontario Tech Univ, Oshawa, ON, Canada
[2] York Univ, N York, ON, Canada
[3] IBM Ctr Adv Studies, Toronto, ON, Canada
[4] IBM Ltd, Toronto, ON, Canada
来源
PROCEEDINGS OF THE VLDB ENDOWMENT | 2019年 / 12卷 / 12期
关键词
D O I
10.14778/3352063.3352120
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Query optimization is a hallmark of database systems. When an SQL query runs more expensively than is viable or warranted, determination of the performance issues is usually performed manually in consultation with experts through the analysis of query's execution plan (QEP). However, this is an excessively time consuming, human error-prone, and costly process. GALO is a novel system that automates this process. The tool automatically learns recurring problem patterns in query plans over workloads in an offline learning phase, to build a knowledge base of plan-rewrite remedies. It then uses the knowledge base online to re-optimize queries often quite drastically. GALO's knowledge base is built on RDF and SPARQL, W3C graph database standards, which is well suited for manipulating and querying over SQL query plans, which are graphs themselves. GALO acts as a third-tier of reoptimization, after query rewrite and cost-based optimization, as a query plan rewrite. For generality, the context of knowledge base problem patterns, including table and column names, is abstracted with canonical symbol labels. Since the knowledge base is not tied to the context of supplied QEPs, table and column names are matched automatically during the re-optimization phase. Thus, problem patterns learned over a particular query workload can be applied in other query workloads. GALO's knowledge base is also an invaluable tool for database experts to debug query performance issues by tracking to known issues and solutions as well as refining the optimizer with new tuned techniques by the development team. We demonstrate an experimental study of the effectiveness of our techniques over synthetic TPC-DS and real IBM client query workloads.
引用
收藏
页码:2010 / 2021
页数:12
相关论文
共 50 条
  • [1] GALO: Guided Automated Learning for re-Optimization
    Damasio, Guilherme
    Bryson, Spencer
    Corvinelli, Vincent
    Godfrey, Parke
    Mierzejewski, Piotr
    Szlichta, Jaroslaw
    Zuzarte, Calisto
    [J]. PROCEEDINGS OF THE VLDB ENDOWMENT, 2019, 12 (12): : 1778 - 1781
  • [2] Enabling Incremental Query Re-Optimization
    Liu, Mengmeng
    Ives, Zachary G.
    Loo, Boon Thau
    [J]. SIGMOD'16: PROCEEDINGS OF THE 2016 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2016, : 1705 - 1720
  • [3] Sampling-Based Query Re-Optimization
    Wu, Wentao
    Naughton, Jeffrey F.
    Singh, Harneet
    [J]. SIGMOD'16: PROCEEDINGS OF THE 2016 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2016, : 1721 - 1736
  • [4] SLA-Aware Cloud Query Processing with Reinforcement Learning-Based Multi-objective Re-optimization
    Wang, Chenxiao
    Gruenwald, Le
    d'Orazio, Laurent
    [J]. BIG DATA ANALYTICS AND KNOWLEDGE DISCOVERY, DAWAK 2022, 2022, 13428 : 249 - 255
  • [5] Re-optimization in adaptive radiotherapy
    Wu, C
    Jeraj, R
    Olivera, GH
    Mackie, TR
    [J]. PHYSICS IN MEDICINE AND BIOLOGY, 2002, 47 (17): : 3181 - 3195
  • [6] Re-Optimization of Rolling Stock Rotations
    Borndoerfer, Ralf
    Mehrgardt, Julika
    Reuther, Markus
    Schlechte, Thomas
    Waas, Kerstin
    [J]. OPERATIONS RESEARCH PROCEEDINGS 2013, 2014, : 49 - +
  • [8] Similarity of Binaries through re-Optimization
    David, Yaniv
    Partush, Nimrod
    Yahav, Eran
    [J]. ACM SIGPLAN NOTICES, 2017, 52 (06) : 79 - 94
  • [9] Continuous re-optimization during treatment
    Jerai, R
    Wu, C
    Mackie, T
    Zhang, T
    [J]. RADIOTHERAPY AND ONCOLOGY, 2004, 73 : S213 - S213
  • [10] Automatic treatment plan re-optimization for adaptive radiotherapy guided with the initial plan DVHs
    Li, Nan
    Zarepisheh, Masoud
    Uribe-Sanchez, Andres
    Moore, Kevin
    Tian, Zhen
    Zhen, Xin
    Graves, Yan Jiang
    Gautier, Quentin
    Mell, Loren
    Zhou, Linghong
    Jia, Xun
    Jiang, Steve
    [J]. PHYSICS IN MEDICINE AND BIOLOGY, 2013, 58 (24): : 8725 - 8738