How I Learned to Stop Worrying and Love Re-optimization

被引:9
作者
Perron, Matthew [1 ]
Shang, Zeyuan [1 ]
Kraska, Tim [1 ]
Stonebraker, Michael [1 ]
机构
[1] MIT, CSAIL, Cambridge, MA 02139 USA
来源
2019 IEEE 35TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2019) | 2019年
关键词
Cardinality Estimation; Query Optimization; Dynamic Query Re-optimization;
D O I
10.1109/ICDE.2019.00191
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Cost-based query optimizers remain one of the most important components of database management systems for analytic workloads. Though modern optimizers select plans close to optimal performance in the common case, a small number of queries are an order of magnitude slower than they could be. In this paper we investigate why this is still the case, despite decades of improvements to cost models, plan enumeration, and cardinality estimation. We demonstrate why we believe that a re-optimization mechanism is likely the most cost-effective way to improve end-to-end query performance. We find that even a simple re-optimization scheme can improve the latency of many poorly performing queries. We demonstrate that re-optimization improves the end-to-end latency of the top 20 longest running queries in the Join Order Benchmark by 27%, realizing most of the benefit of perfect cardinality estimation.
引用
收藏
页码:1758 / 1761
页数:4
相关论文
共 6 条
[1]  
Babu Shivnath, 2005, SIGMOD, P107, DOI [10.1145/1066157.1066171, DOI 10.1145/1066157.1066171]
[2]  
Leis V, 2015, PROC VLDB ENDOW, V9, P204
[3]  
Moerkotte G., 2009, Proc. VLDB Endow., P982
[4]  
Selinger P Griffiths, 1979, P 1979 ACM SIGMOD IN, P23, DOI DOI 10.1145/582095.582099
[5]  
Stillger M., 2001, Proceedings of the 27th International Conference on Very Large Data Bases, P19
[6]  
The Transaction Processing Council, 2013, TPC H BENCHM REV 2 1