Adaptively reordering joins during query execution

被引:18
|
作者
Li, Quanzhong [1 ]
Shao, Minglong [2 ]
Markl, Volker [1 ]
Beyer, Kevin [1 ]
Colby, Latha [1 ]
Lohman, Guy [1 ]
机构
[1] IBM Corp, Almaden Res Ctr, 650 Harry Rd, San Jose, CA 95120 USA
[2] Carnegie Mellon Univ, Dept Comp Sci, Pittsburgh, PA 15213 USA
关键词
D O I
10.1109/ICEMI.2007.4350546
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Traditional query processing techniques based on static query optimization are ineffective in applications where statistics about the data are unavailable at the start of query execution or where the data characteristics are skewed and change dynamically. Several adaptive query processing techniques have been proposed in recent years to overcome the limitations of static query optimizers through either explicit re-optimization of plans during execution or by using a row-routing based approach. In this paper, we present a novel method for processing pipelined join plans that dynamically arranges the join order of both inner and outer-most tables at run-time. We extend the Eddies concept of "moments of symmetry" to reorder indexed nested-loop joins, the join method used by all commercial DBMSs for building pipelined query plans for applications for which low latencies are crucial. Unlike row-routing techniques, our approach achieves adaptability by changing the pipeline itself which avoids the bookkeeping and routing decision associated with each row. Operator selectivities monitored during query execution are used to change the execution plan at strategic points, and the change of execution plans utilizes a novel and efficient technique for avoiding duplicates in the query results. Our prototype implementation in a commercial DBMS shows a query execution speedup of up to 8 times.
引用
收藏
页码:1 / +
页数:2
相关论文
共 50 条
  • [1] Reordering query execution in tertiary memory databases
    Sarawagi, S
    Stonebraker, M
    [J]. PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON VERY LARGE DATA BASES, 1996, : 156 - 167
  • [2] Many-query join: efficient shared execution of relational joins on modern hardware
    Makreshanski, Darko
    Giannikis, Georgios
    Alonso, Gustavo
    Kossmann, Donald
    [J]. VLDB JOURNAL, 2018, 27 (05): : 669 - 692
  • [3] Many-query join: efficient shared execution of relational joins on modern hardware
    Darko Makreshanski
    Georgios Giannikis
    Gustavo Alonso
    Donald Kossmann
    [J]. The VLDB Journal, 2018, 27 : 669 - 692
  • [4] REORDERING COMPUTATIONS FOR PARALLEL EXECUTION
    ADAMS, L
    [J]. COMMUNICATIONS IN APPLIED NUMERICAL METHODS, 1986, 2 (03): : 263 - 271
  • [5] Outerjoin simplification and reordering for query optimization
    GalindoLegaria, C
    Rosenthal, A
    [J]. ACM TRANSACTIONS ON DATABASE SYSTEMS, 1997, 22 (01): : 43 - 74
  • [6] Optimising query execution time in LHCb Bookkeeping System using partition pruning and Partition-Wise joins
    Mathe, Zoltan
    Charpentier, Philippe
    [J]. 20TH INTERNATIONAL CONFERENCE ON COMPUTING IN HIGH ENERGY AND NUCLEAR PHYSICS (CHEP2013), PARTS 1-6, 2014, 513
  • [7] Distributed Query Execution Adaptation
    Pomares, Alexandra
    [J]. 2011 6TH COLOMBIAN COMPUTING CONGRESS (CCC), 2011,
  • [8] A Query Simulation System To Illustrate Database Query Execution
    Allenstein, Brett
    Yost, Andrew
    Wagner, Paul
    Morrison, Joline
    [J]. SIGCSE'08: PROCEEDINGS OF THE 39TH ACM TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION, 2008, : 493 - 497
  • [9] Benchmarking Query Execution Robustness
    Wiener, Janet L.
    Kuno, Harumi
    Graefe, Goetz
    [J]. PERFORMANCE EVALUATION AND BENCHMARKING, 2009, 5895 : 153 - 166
  • [10] Parallel execution of hash joins in parallel databases
    Hsiao, HI
    Chen, MS
    Yu, PS
    [J]. IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 1997, 8 (08) : 872 - 883