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 条
  • [1] Plan Bouquets: Query Processing without Selectivity Estimation
    Dutt, Anshuman
    Haritsa, Jayant R.
    SIGMOD'14: PROCEEDINGS OF THE 2014 ACM SIGMOD INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2014, : 1039 - 1050
  • [2] QUEST: An Exploratory Approach to Robust Query Processing
    Dutt, Anshuman
    Neelam, Sumit
    Haritsa, Jayant R.
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2014, 7 (13): : 1585 - 1588
  • [3] Robust query processing
    Graefe, Goetz
    IEEE 27TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2011), 2011, : 1361 - 1361
  • [4] Robust Query Processing: A Survey
    Haritsa, Jayant R.
    FOUNDATIONS AND TRENDS IN DATABASES, 2024, 15 (01): : 1 - 114
  • [5] Robust Query Processing: Mission Possible
    Haritsa, Jayant R.
    2019 IEEE 35TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2019), 2019, : 2072 - 2075
  • [6] Robust Query Processing: Mission Possible
    Haritsa, Jayant R.
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2020, 13 (12): : 3425 - 3428
  • [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] Platform-Independent Robust Query Processing
    Karthik, Srinivas
    Haritsa, Jayant R.
    Kenkre, Sreyash
    Pandit, Vinayaka
    Krishnan, Lohit
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2019, 31 (01) : 17 - 31
  • [9] Robust Distributed Query Processing for Streaming Data
    Lei, Chuan
    Rundensteiner, Elke A.
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 2014, 39 (02):
  • [10] Robust query processing for linked data fragments
    Heling, Lars
    Acosta, Maribel
    SEMANTIC WEB, 2022, 13 (04) : 623 - 657