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 条
  • [41] A Robust Approach to Noise for Plan Recognition in RTS Games
    Lorthioir, Guillaume
    Inoue, Katsumi
    2021 IEEE 33RD INTERNATIONAL CONFERENCE ON TOOLS WITH ARTIFICIAL INTELLIGENCE (ICTAI 2021), 2021, : 469 - 474
  • [42] NEURON: Query Execution Plan Meets Natural Language Processing For Augmenting DB Education
    Liu, Siyuan
    Bhowmick, Sourav S.
    Zhang, Wanlu
    Wang, Shu
    Huang, Wanyi
    Joty, Shafiq
    SIGMOD '19: PROCEEDINGS OF THE 2019 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2019, : 1953 - 1956
  • [43] Proactive Plan-Based Continuous Query Processing over Diverse SPARQL Endpoints
    Chun, Sejin
    Seo, Seungmin
    Ro, Wonwoo
    Lee, Kyong-Ho
    2015 IEEE/WIC/ACM INTERNATIONAL CONFERENCE ON WEB INTELLIGENCE AND INTELLIGENT AGENT TECHNOLOGY (WI-IAT), VOL 1, 2015, : 161 - 164
  • [44] Robust K nearest neighbor query processing algorithm in wireless sensor networks
    Liu, Liang
    Qin, Xiao-Lin
    Liu, Ya-Li
    Li, Bo-Han
    Tongxin Xuebao/Journal on Communications, 2010, 31 (11): : 171 - 179
  • [45] Efficient and robust query processing in dynamic environments using random walk techniques
    Avin, C
    Brito, C
    IPSN '04: THIRD INTERNATIONAL SYMPOSIUM ON INFORMATION PROCESSING IN SENSOR NETWORKS, 2004, : 277 - 286
  • [46] DATABASE RELAXATION - AN APPROACH TO QUERY-PROCESSING IN INCOMPLETE DATABASES
    SHEN, S
    INFORMATION PROCESSING & MANAGEMENT, 1988, 24 (02) : 151 - 159
  • [47] Optimizing the Spatial Query Processing with A Proxy-Based Approach
    Geetha, K.
    Kannan, A.
    2014 SIXTH INTERNATIONAL CONFERENCE ON ADVANCED COMPUTING, 2014, : 77 - 81
  • [48] The cougar approach to in-network query processing in sensor networks
    Yao, Y
    Gehrke, J
    SIGMOD RECORD, 2002, 31 (03) : 9 - 18
  • [49] A new approach for Boolean query processing in text information retrieval
    Baird, Leemon
    Kraft, Donald H.
    THEORETICAL ADVANCES AND APPLICATIONS OF FUZZY LOGIC AND SOFT COMPUTING, 2007, 42 : 64 - +
  • [50] A KNOWLEDGE-BASED APPROACH TO STATISTICAL QUERY-PROCESSING
    BASILI, C
    BASILI, R
    MEOEVOLI, L
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 580 : 437 - 452