BASE: Bridging the Gap between Cost and Latency for Query Optimization

被引:6
|
作者
Chen, Xu [1 ]
Wang, Zhen [2 ]
Liu, Shuncheng [1 ]
Li, Yaliang [2 ]
Zeng, Kai [2 ]
Ding, Bolin [2 ]
Zhou, Jingren [2 ]
Su, Han [1 ]
Zheng, Kai [1 ]
机构
[1] Univ Elect Sci & Technol China, Chengdu, Peoples R China
[2] Alibaba Grp, Hangzhou, Peoples R China
来源
PROCEEDINGS OF THE VLDB ENDOWMENT | 2023年 / 16卷 / 08期
关键词
D O I
10.14778/3594512.3594525
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Some recent works have shown the advantages of reinforcement learning (RL) based learned query optimizers. These works often use the cost (i.e., the estimation of cost model) or the latency (i.e., execution time) as guidance signals for training their learned models. However, cost-based learning underperforms in latency and latency-based learning is time-intensive. In order to bypass such a dilemma, researchers attempt to transfer a learned value network from the cost domain to the latency domain. We recognize critical insights in cost/latency-based training, prompting us to transfer the reward function rather than the value network. Based on this idea, we propose a two-stage RL-based framework, BASE, to bridge the gap between cost and latency. After learning a policy based on cost signals in its first stage, BASE formulates transferring the reward function as a variant of inverse reinforcement learning. Intuitively, BASE learns to calibrate the reward function and updates the policy regarding the calibrated one in a mutually-improved manner. Extensive experiments exhibit the superiority of BASE on two benchmark datasets: Our optimizer outperforms traditional DBMS, using 30% less training time than SOTA methods. Meanwhile, our approach can enhance the efficiency of other learning-based optimizers.
引用
收藏
页码:1958 / 1966
页数:9
相关论文
共 50 条
  • [1] Query and Resource Optimization: Bridging the Gap
    Viswanathan, Lalitha
    Jindal, Alekh
    Karanasos, Konstantinos
    2018 IEEE 34TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE), 2018, : 1384 - 1387
  • [2] VISUALNEO: Bridging the Gap between Visual Query Interfaces and Graph Query Engines
    Huang, Kai
    Liang, Houdong
    Yao, Chongchong
    Zhao, Xi
    Cui, Yue
    Tian, Yao
    Zhang, Ruiyuan
    Zhou, Xiaofang
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2023, 16 (12): : 4010 - 4013
  • [3] Bridging the Latency Gap between NVM and DRAM for Latency-bound Operations
    Psaropoulos, Georgios
    Oukid, Ismail
    Legler, Thomas
    May, Norman
    Ailamaki, Anastasia
    15TH INTERNATIONAL WORKSHOP ON DATA MANAGEMENT ON NEW HARDWARE (DAMON 2019), 2019,
  • [4] Negative query generation: bridging the gap between query likelihood retrieval models and relevance
    Lv, Yuanhua
    Zhai, ChengXiang
    INFORMATION RETRIEVAL JOURNAL, 2015, 18 (04): : 359 - 378
  • [5] Negative query generation: bridging the gap between query likelihood retrieval models and relevance
    Yuanhua Lv
    ChengXiang Zhai
    Information Retrieval Journal, 2015, 18 : 359 - 378
  • [6] Bridging the gap: Query by semantic example
    Rasiwasia, Nikhil
    Moreno, Pedro J.
    Vasconcelos, Nuno
    IEEE TRANSACTIONS ON MULTIMEDIA, 2007, 9 (05) : 923 - 938
  • [7] Bridging the Gap between Spiking Neural Networks & LSTMs for Latency & Energy Efficiency
    Datta, Gourav
    Deng, Haoqin
    Aviles, Robert
    Liu, Zeyu
    Beerel, Peter A.
    2023 IEEE/ACM INTERNATIONAL SYMPOSIUM ON LOW POWER ELECTRONICS AND DESIGN, ISLPED, 2023,
  • [8] Antimicrobial stewardship: bridging the gap between quality care and cost
    Goff, Debra A.
    CURRENT OPINION IN INFECTIOUS DISEASES, 2011, 24 : S11 - S20
  • [9] Bridging the cost gap with composites
    Ashley, S
    MECHANICAL ENGINEERING, 1996, 118 (02) : 76 - 80
  • [10] FlowOpt: Bridging the Gap Between Optimization Technology and Manufacturing Planners
    Bartak, Roman
    Jaska, Milan
    Novak, Ladislav
    Rovensky, Vladimir
    Skalicky, Tomas
    Cully, Martin
    Sheahan, Con
    Dang Thanh-Tung
    20TH EUROPEAN CONFERENCE ON ARTIFICIAL INTELLIGENCE (ECAI 2012), 2012, 242 : 1003 - +