Plan Bouquets: Query Processing without Selectivity Estimation

被引:16
|
作者
Dutt, Anshuman [1 ]
Haritsa, Jayant R. [1 ]
机构
[1] Indian Inst Sci, Database Syst Lab, SERC CSA, Bangalore, Karnataka, India
关键词
Selectivity Estimation; Plan Bouquets; Robust Query Processing;
D O I
10.1145/2588555.2588566
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Selectivity estimates for optimizing OLAP queries often differ significantly from those actually encountered during query execution, leading to poor plan choices and inflated response times. We propose here a conceptually new approach to address this problem, wherein the compile-time estimation process is completely eschewed for error-prone selectivities. Instead, a small "bouquet" of plans is identified from the set of optimal plans in the query's selectivity error space, such that at least one among this subset is near optimal at each location in the space. Then, at run time, the actual selectivities of the query are incrementally "discovered" through a sequence of partial executions of bouquet plans, eventually identifying the appropriate bouquet plan to execute. The duration and switching of the partial executions is controlled by a graded progression of isocost surfaces projected onto the optimal performance profile. We prove that this construction results in bounded overheads for the selectivity discovery process and consequently, guaranteed worst-case performance. In addition, it provides repeatable execution strategies across different invocations of a query. The plan bouquet approach has been empirically evaluated on both PostgreSQL and a commercial DBMS, over the TPC-H and TPC-DS benchmark environments. Our experimental results indicate that, even with conservative assumptions, it delivers substantial improvements in the worst-case behavior, without impairing the average-case performance, as compared to the native optimizers of these systems. Moreover, the bouquet technique can be largely implemented using existing optimizer infrastructure, making it relatively easy to incorporate in current database engines. Overall, the bouquet approach provides novel guarantees that open up new possibilities for robust query processing.
引用
收藏
页码:1039 / 1050
页数:12
相关论文
共 50 条
  • [1] Plan Bouquets: A Fragrant Approach to Robust Query Processing
    Dutt, Anshuman
    Haritsa, Jayant R.
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 2016, 41 (02):
  • [2] A new approach to building histogram for selectivity estimation in query processing optimization
    Lu, Xin
    Guan, Jihong
    COMPUTERS & MATHEMATICS WITH APPLICATIONS, 2009, 57 (06) : 1037 - 1047
  • [3] Selectivity Estimation in Web Query Optimization
    Shashidhar, H. R.
    Raju, G. T.
    Murthy, Vinayaka
    PROCEEDINGS OF THE SECOND INTERNATIONAL CONFERENCE ON INTERNET OF THINGS, DATA AND CLOUD COMPUTING (ICC 2017), 2017,
  • [4] Query selectivity estimation for uncertain data
    Singh, Sarvjeet
    Mayfield, Chris
    Shah, Rahul
    Prabhakar, Sunil
    SCIENTIFIC AND STATISTICAL DATABASE MANAGEMENT, PROCEEDINGS, 2008, 5069 : 61 - 78
  • [5] Spatial selectivity estimation of window query
    Cheng, Changxiu
    Chen, Rongguo
    Zhu, Yanlu
    Wuhan Daxue Xuebao (Xinxi Kexue Ban)/ Geomatics and Information Science of Wuhan University, 2010, 35 (04): : 399 - 402
  • [6] Query selectivity estimation via data mining
    Gryz, J
    Liang, DM
    INTELLIGENT INFORMATION PROCESSING AND WEB MINING, 2004, : 29 - 38
  • [7] Facilitating XML Query Processing Via Execution Plan
    Izadi, Sayyed Kamyar
    Garakani, Vahid
    Haghjoo, Mostafa S.
    ADVANCES IN COMPUTER SCIENCE AND ENGINEERING, 2008, 6 : 917 - 920
  • [8] The selectivity estimation of spatial query based on simple polygon
    Guo, P
    Chen, HZ
    Chen, ZL
    PROCEEDINGS OF THE 11TH JOINT INTERNATIONAL COMPUTER CONFERENCE, 2005, : 670 - 673
  • [9] An Approach Based on Bayesian Networks for Query Selectivity Estimation
    Halford, Max
    Saint-Pierre, Philippe
    Morvan, Franck
    DATABASE SYSTEMS FOR ADVANCED APPLICATIONS (DASFAA 2019), PT II, 2019, 11447 : 3 - 19
  • [10] Selectivity estimation for optimizing similarity query in multimedia databases
    Lee, JH
    Chun, SJ
    Park, S
    INTELLIGENT DATA ENGINEERING AND AUTOMATED LEARNING, 2003, 2690 : 638 - 644