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 条
  • [41] An improved query plan in data stream
    Lin Jinxian
    Zheng Zhanping
    ICEBE 2006: IEEE INTERNATIONAL CONFERENCE ON E-BUSINESS ENGINEERING, PROCEEDINGS, 2006, : 401 - +
  • [42] A graph query language and its query processing
    Sheng, L
    Özsoyoglu, ZM
    Özsoyoglu, G
    15TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, PROCEEDINGS, 1999, : 572 - 581
  • [43] Query Languages and Query Processing (QLQP 2006)
    Conrad, Stefan
    De Laborda, Cristian Pérez
    Sattler, Kai-Uwe
    Balke, Wolf-Tilo
    Dittrich, Jens
    Freytag, Johann-Christoph
    Grust, Torsten
    Ilyas, Ihab F.
    Lehner, Wolfgang
    Manegold, Stefan
    Markl, Volker
    Meyer, Holger
    Paton, Norman
    Pedersen, Torben Bach
    Ritter, Norbert
    Schenkel, Ralf
    Seeger, Bernhard
    Husemann, Martin
    Kozlova, Iryna
    Omari, Asem
    Popfinger, Christopher
    Teubner, Jens
    Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2006, 4254 LNCS
  • [44] Query processing in spatial-query-by-sketch
    Egenhofer, MJ
    JOURNAL OF VISUAL LANGUAGES AND COMPUTING, 1997, 8 (04): : 403 - 424
  • [45] Parallel Selectivity Estimation for Optimizing Multidimensional Spatial Join Processing on GPUs
    Zhang, Jianting
    You, Simin
    Gruenwald, Le
    2017 IEEE 33RD INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2017), 2017, : 1591 - 1598
  • [46] An 'action plan' without the plan
    Yorath, Beth
    PSYCHOLOGIST, 2014, 27 (03) : 138 - 139
  • [47] Learned Query Optimization by Constraint-Based Query Plan Augmentation
    Ye, Chen
    Duan, Haoyang
    Zhang, Hua
    Wu, Yifan
    Dai, Guojun
    MATHEMATICS, 2024, 12 (19)
  • [48] Robust query processing
    Graefe, Goetz
    IEEE 27TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2011), 2011, : 1361 - 1361
  • [49] Reverse query processing
    Binnig, Carsten
    Kossmann, Donald
    Lo, Eric
    2007 IEEE 23RD INTERNATIONAL CONFERENCE ON DATA ENGINEERING, VOLS 1-3, 2007, : 481 - +
  • [50] Cohort Query Processing
    Jiang, Dawei
    Cai, Qingchao
    Chen, Gang
    Jagadish, H. V.
    Ooi, Beng Chin
    Tan, Kian-Lee
    Tung, Anthony K. H.
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2016, 10 (01): : 1 - 12