Plan Bouquets: A Fragrant Approach to Robust Query Processing

被引:7
|
作者
Dutt, Anshuman [1 ]
Haritsa, Jayant R. [1 ]
机构
[1] Indian Inst Sci, Database Syst Lab, SERC CSA, Bangalore 560012, Karnataka, India
来源
ACM TRANSACTIONS ON DATABASE SYSTEMS | 2016年 / 41卷 / 02期
关键词
Selectivity estimation; plan bouquets; robust query processing; MODELS;
D O I
10.1145/2901738
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Identifying efficient execution plans for declarative OLAP queries typically entails estimation of several predicate selectivities. In practice, these estimates often differ significantly from the values actually encountered during query execution, leading to poor plan choices and grossly inflated response times. We propose here a conceptually new approach to address this classical problem, wherein the compile-time estimation process is completely eschewed for error-prone selectivities. Instead, from the set of optimal plans in the query's selectivity error space, a limited subset, called the "plan bouquet," is selected such that at least one of the bouquet plans is 2-optimal at each location in the space. Then, at run time, a sequence of cost-budgeted executions from the plan bouquet is carried out, eventually finding a plan that executes to completion within its assigned budget. The duration and switching of these executions is controlled by a graded progression of isosurfaces projected onto the optimal performance profile. We prove that this construction results, for the first time, in guarantees on worst-case performance sub-optimality. Moreover, it ensures repeatable execution strategies across different invocations of a query. We then present a suite of enhancements to the basic plan bouquet algorithm, including randomized variants, that result in significantly stronger performance guarantees. An efficient isosurface identification algorithm is also introduced to curtail the bouquet construction overheads. 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 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, it can be implemented using existing optimizer infrastructure, making it relatively easy to incorporate in current database engines. Overall, the plan bouquet approach provides novel performance guarantees that open up new possibilities for robust query processing.
引用
收藏
页数:37
相关论文
共 50 条
  • [31] Robust Query Processing in Co-Processor-accelerated Databases
    Bress, Sebastian
    Funke, Henning
    Teubner, Jens
    SIGMOD'16: PROCEEDINGS OF THE 2016 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2016, : 1891 - 1906
  • [32] Study on Distributed Complex Event Processing in Internet of Things based on Query Plan
    Yuan, Lingyun
    Xu, Dongdong
    Ge, Guili
    Zhu, Mingli
    2015 IEEE INTERNATIONAL CONFERENCE ON CYBER TECHNOLOGY IN AUTOMATION, CONTROL, AND INTELLIGENT SYSTEMS (CYBER), 2015, : 666 - 670
  • [33] Distributed Query Processing Plan Generation using Iterative Improvement and Simulated Annealing
    Giri, Anil Kumar
    Kumar, Rajesh
    PROCEEDINGS OF THE 2013 3RD IEEE INTERNATIONAL ADVANCE COMPUTING CONFERENCE (IACC), 2013, : 757 - 762
  • [34] A ROBUST PROTOCOL FOR DISTRIBUTED QUERY-PROCESSING ON A LOCAL AREA NETWORK
    BANDYOPADHYAY, S
    SENGUPTA, A
    SEN, A
    INFORMATION SYSTEMS, 1990, 15 (05) : 523 - 535
  • [35] SemanticTwig: A semantic approach to optimize XML query processing
    Bao, Zhifeng
    Ling, Tok Wang
    Lu, Jiaheng
    Chen, Bo
    DATABASE SYSTEMS FOR ADVANCED APPLICATIONS, 2008, 4947 : 282 - +
  • [36] Automata match: a new XML query processing approach
    Yu, JX
    Wang, GR
    Lu, HJ
    Yu, G
    Lv, JH
    Sun, B
    COMPUTER SYSTEMS SCIENCE AND ENGINEERING, 2003, 18 (05): : 227 - 240
  • [37] Query processing using contextual information: A hybrid approach
    Iftikhar, Nadeem
    Liaquat, Humaira
    Qadir, Muhammad Abdul
    MANAGING INFORMATION IN THE DIGITAL ECONOMY: ISSUES & SOLUTIONS, 2006, : 576 - +
  • [38] A Rule Based Approach for NLP Based Query Processing
    Mahmud, Tanzim
    Hasan, K. M. Azharul
    Ahmed, Mahtab
    Chak, Thwoi Hla Ching
    2015 2ND INTERNATIONAL CONFERENCE ON ELECTRICAL INFORMATION AND COMMUNICATION TECHNOLOGY (EICT), 2015, : 78 - 82
  • [39] A Robust Optimization Approach of SQL-to-SPARQL Query Rewriting
    Ahmed, Abatal
    Bahaj, Mohamed
    Nassima, Soussi
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2019, 10 (11) : 538 - 543
  • [40] Approach integrating document processing with query processing technique for Web service search
    Zhao W.
    Zhou D.
    Cao B.
    Liu J.
    Jisuanji Jicheng Zhizao Xitong/Computer Integrated Manufacturing Systems, CIMS, 2018, 24 (07): : 1830 - 1837