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 条
  • [31] 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
  • [32] A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumeration
    Hai Lan
    Zhifeng Bao
    Yuwei Peng
    Data Science and Engineering, 2021, 6 : 86 - 101
  • [33] A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumeration
    Lan, Hai
    Bao, Zhifeng
    Peng, Yuwei
    DATA SCIENCE AND ENGINEERING, 2021, 6 (01) : 86 - 101
  • [34] Lightweight Graphical Models for Selectivity Estimation Without Independence Assumptions
    Tzoumas, Kostas
    Deshpande, Amol
    Jensen, Christian S.
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2011, 4 (11): : 852 - 863
  • [35] Query Selectivity Estimation Based on Improved V-optimal Histogram by Introducing Information about Distribution of Boundaries of Range Query Conditions
    Augustyn, Dariusz Rafal
    COMPUTER INFORMATION SYSTEMS AND INDUSTRIAL MANAGEMENT, CISIM 2014, 2014, 8838 : 151 - 164
  • [36] The Method of Query Selectivity Estimation for Selection Conditions Based on Sum of Sub-Independent Attributes
    Augustyn, Dariusz Rafal
    MAN-MACHINE INTERACTIONS 3, 2014, 242 : 601 - 609
  • [37] The Analytical Bootstrap: a New Method for Fast Error Estimation in Approximate Query Processing
    Zeng, Kai
    Gao, Shi
    Mozafari, Barzan
    Zaniolo, Carlo
    SIGMOD'14: PROCEEDINGS OF THE 2014 ACM SIGMOD INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2014, : 277 - 288
  • [38] A Comparison of Top-k Threshold Estimation Techniques for Disjunctive Query Processing
    Mallia, Antonio
    Siedlaczek, Michal
    Sun, Mengyang
    Suel, Torsten
    CIKM '20: PROCEEDINGS OF THE 29TH ACM INTERNATIONAL CONFERENCE ON INFORMATION & KNOWLEDGE MANAGEMENT, 2020, : 2141 - 2144
  • [39] Histogram Estimation for Optimal Filter Skyline Query Processing in Wireless Sensor Networks
    Wang, Haixiang
    Zheng, Jiping
    Song, Baoli
    Wang, Yongge
    INTERNATIONAL JOURNAL OF DISTRIBUTED SENSOR NETWORKS, 2014,
  • [40] Interactive Plan Hints for Query Optimization
    Bruno, Nicolas
    Chaudhuri, Surajit
    Ramamurthy, Ravi
    ACM SIGMOD/PODS 2009 CONFERENCE, 2009, : 1043 - 1045