AI Meets AI: Leveraging Query Executions to Improve Index Recommendations

被引:83
作者
Ding, Bailu [1 ]
Das, Sudipto [1 ]
Marcus, Ryan [1 ,2 ]
Wu, Wentao [1 ]
Chaudhuri, Surajit [1 ]
Narasayya, Vivek R. [1 ]
机构
[1] Microsoft Res, Redmond, WA 98052 USA
[2] Brandeis Univ, Waltham, MA 02254 USA
来源
SIGMOD '19: PROCEEDINGS OF THE 2019 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA | 2019年
关键词
Automated indexing; autonomous database management; performance tuning; relational database-as-a-service; DESIGN;
D O I
10.1145/3299869.3324957
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
State-of-the-art index tuners rely on query optimizer's cost estimates to search for the index configuration with the largest estimated execution cost improvement'. Due to well-known limitations in optimizer's estimates, in a significant fraction of cases, an index estimated to improve a query's execution cost, e.g., CPU time, makes that worse when implemented. Such errors are a major impediment for automated indexing in production systems. We observe that comparing the execution cost of two plans of the same query corresponding to different index configurations is a key step during index tuning. Instead of using optimizer's estimates for such comparison, our key insight is that formulating it as a classification task in machine learning results in significantly higher accuracy. We present a study of the design space for this classification problem. We further show how to integrate this classifier into the state-of-the-art index tuners with minimal modifications, i.e., how artificial intelligence (AI) can benefit automated indexing (AI). Our evaluation using industry-standard benchmarks and a large number of real customer workloads demonstrates up to 5x reduction in the errors in identifying the cheaper plan in a pair, which eliminates almost all query execution cost regressions when the model is used in index tuning.
引用
收藏
页码:1241 / 1258
页数:18
相关论文
共 65 条
[31]   Automatically Indexing Millions of Databases in Microsoft Azure SQL Database [J].
Das, Sudipto ;
Grbic, Miroslav ;
Ilic, Igor ;
Jovandic, Isidora ;
Jovanovic, Andrija ;
Narasayya, Vivek R. ;
Radulovic, Miodrag ;
Stikic, Maja ;
Xu, Gaoxiang ;
Chaudhuri, Surajit .
SIGMOD '19: PROCEEDINGS OF THE 2019 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2019, :666-679
[32]   CoPhy: A Scalable, Portable, and Interactive Index Advisor for Large Workloads [J].
Dash, Debabrata ;
Polyzotis, Neoklis ;
Ailamaki, Anastasia .
PROCEEDINGS OF THE VLDB ENDOWMENT, 2011, 4 (06) :362-372
[33]   Plan Stitch: Harnessing the Best of Many Plans [J].
Ding, Bailu ;
Das, Sudipto ;
Wu, Wentao ;
Chaudhuri, Surajit ;
Narasayya, Vivek .
PROCEEDINGS OF THE VLDB ENDOWMENT, 2018, 11 (10) :1123-1136
[34]   Columnstore and B plus tree - Are Hybrid Physical Designs Important? [J].
Dziedzic, Adam ;
Wang, Jingjing ;
Das, Sudipto ;
Ding, Bolin ;
Narasayya, Vivek R. ;
Syamala, Manoj .
SIGMOD'18: PROCEEDINGS OF THE 2018 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2018, :177-190
[35]   PHYSICAL DATABASE DESIGN FOR RELATIONAL DATABASES [J].
FINKELSTEIN, S ;
SCHKOLNICK, M ;
TIBERIO, P .
ACM TRANSACTIONS ON DATABASE SYSTEMS, 1988, 13 (01) :91-128
[36]   Predicting Multiple Metrics for Queries: Better Decisions Enabled by Machine Learning [J].
Ganapathi, Archana ;
Kuno, Harumi ;
Dayal, Umeshwar ;
Wiener, Janet L. ;
Fox, Armando ;
Jordan, Michael ;
Patterson, David .
ICDE: 2009 IEEE 25TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, VOLS 1-3, 2009, :592-+
[37]   node2vec: Scalable Feature Learning for Networks [J].
Grover, Aditya ;
Leskovec, Jure .
KDD'16: PROCEEDINGS OF THE 22ND ACM SIGKDD INTERNATIONAL CONFERENCE ON KNOWLEDGE DISCOVERY AND DATA MINING, 2016, :855-864
[38]   Deep Residual Learning for Image Recognition [J].
He, Kaiming ;
Zhang, Xiangyu ;
Ren, Shaoqing ;
Sun, Jian .
2016 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2016, :770-778
[39]   APPROXIMATION CAPABILITIES OF MULTILAYER FEEDFORWARD NETWORKS [J].
HORNIK, K .
NEURAL NETWORKS, 1991, 4 (02) :251-257
[40]   MULTILAYER FEEDFORWARD NETWORKS ARE UNIVERSAL APPROXIMATORS [J].
HORNIK, K ;
STINCHCOMBE, M ;
WHITE, H .
NEURAL NETWORKS, 1989, 2 (05) :359-366