Bao: Making Learned Query Optimization Practical

被引:0
|
作者
Marcus, Ryan [1 ,2 ]
Negi, Parimarjan [1 ]
Mao, Hongzi [1 ]
Tatbul, Nesime [1 ,2 ]
Alizadeh, Mohammad [1 ]
Kraska, Tim [1 ]
机构
[1] MIT, 77 Massachusetts Ave, Cambridge, MA 02139 USA
[2] Intel Labs, Hillsboro, OR 97124 USA
关键词
Query optimization; machine learning; reinforcement learning;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Recent efforts applying machine learning techniques to query optimization have shown few practical gains due to substantive training overhead, inability to adapt to changes, and poor tail performance. Motivated by these difficulties, we introduce Bao (the Bandit ptimizer). Bao takes advantage of the wisdom built into existing query optimizers by providing per-query optimization hints. Bao combines modern tree convolutional neural networks with Thompson sampling, a well-studied reinforcement learning algorithm. As a result, Bao automatically learns from its mistakes and adapts to changes in query workloads, data, and schema. Experimentally, we demonstrate that Bao can quickly learn strategies that improve end-to-end query execution performance, including tail latency, for several workloads containing long-running queries. In cloud environments, we show that Bao can offer both reduced costs and better performance compared with a commercial system.
引用
收藏
页码:1275 / 1288
页数:14
相关论文
共 50 条
  • [1] Bao: Making Learned Query Optimization Practical
    Marcus, Ryan
    Negi, Parimarjan
    Moa, Hongzi
    Tatbul, Nesime
    Alizadeh, Mohammad
    Kraska, Tim
    [J]. SIGMOD RECORD, 2022, 51 (01) : 6 - 13
  • [2] Making Learned Query Optimization Practical: A Technical Perspective
    Markl, Volker
    [J]. SIGMOD RECORD, 2022, 51 (01) : 5 - 5
  • [3] Making Compiling Query Engines Practical
    Kohn, Andre
    Leis, Viktor
    Neumann, Thomas
    [J]. IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2021, 33 (02) : 597 - 612
  • [4] Low Rank Approximation for Learned Query Optimization
    Yi, Zixuan
    Tian, Yao
    Ives, Zachary G.
    Marcus, Ryan
    [J]. PROCEEDINGS OF THE SEVENTH INTERNATIONAL WORKSHOP ON EXPLOITING ARTIFICIAL INTELLIGENCE TECHNIQUES FOR DATA MANAGEMENT, AIDM 2024, 2024,
  • [5] FASTgres: Making Learned Query Optimizer Hinting Effective
    Woltmann, Lucas
    Thiessat, Jerome
    Hartmann, Claudio
    Habich, Dirk
    Lehner, Wolfgang
    [J]. PROCEEDINGS OF THE VLDB ENDOWMENT, 2023, 16 (11): : 3310 - 3322
  • [6] AutoSteer: Learned Query Optimization for Any SQL Database
    Anneser, Christoph
    Tatbul, Nesime
    Cohen, David
    Xu, Zhenggang
    Pandian, Prithviraj
    Laptev, Nikolay
    Marcus, Ryan
    [J]. PROCEEDINGS OF THE VLDB ENDOWMENT, 2023, 16 (12): : 3515 - 3527
  • [7] Practical Learned Image Compression with Online Encoder Optimization
    Zhang, Haotian
    Mei, Feihong
    Liao, Junqi
    Li, Li
    Li, Houqiang
    Liu, Dong
    [J]. 2024 PICTURE CODING SYMPOSIUM, PCS 2024, 2024,
  • [8] Learned Query Optimizers
    Ding, Bolin
    Zhu, Rong
    Zhou, Jingren
    [J]. FOUNDATIONS AND TRENDS IN DATABASES, 2024, 13 (04):
  • [9] Broadening and Deepening Query Optimization Yet Still Making Progress
    Naughton, Jeffrey F.
    [J]. COMMUNICATIONS OF THE ACM, 2017, 60 (10) : 80 - 80
  • [10] DeepO: A Learned Query Optimizer
    Sun, Luming
    Ji, Tao
    Li, Cuiping
    Chen, Hong
    [J]. PROCEEDINGS OF THE 2022 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA (SIGMOD '22), 2022, : 2421 - 2424