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 条
  • [41] Distance-Based Triple Reordering for SPARQL Query Optimization
    Meimaris, Marios
    Papastefanatos, George
    [J]. 2017 IEEE 33RD INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2017), 2017, : 1559 - 1562
  • [42] Cloaking data to ease view creation, query expression, and query execution
    [J]. Murthy, S. (sudarshan.murthy@elseinstitute.org), 1600, Springer Verlag (7260 LNCS):
  • [43] Query Based Hybrid Learning Models for Adaptively Adjusting Locality
    Zhu, Yuanchun
    Mi, Guyue
    Tan, Ying
    [J]. 2012 INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS (IJCNN), 2012,
  • [44] MQJoin: Efficient Shared Execution of Main-Memory Joins
    Makreshanski, Darko
    Giannikis, Georgios
    Alonso, Gustavo
    Kossmann, Donald
    [J]. PROCEEDINGS OF THE VLDB ENDOWMENT, 2016, 9 (06): : 480 - 491
  • [45] Cost-based query optimization for multi reachability joins
    Cheng, Jiefeng
    Yu, Jeffrey Xu
    Ding, Bolin
    [J]. ADVANCES IN DATABASES: CONCEPTS, SYSTEMS AND APPLICATIONS, 2007, 4443 : 18 - +
  • [46] Distributed query execution under access restrictions
    Vimercati, Sabrina De Capitani di
    Foresti, Sara
    Jajodia, Sushil
    Livraga, Giovanni
    Paraboschi, Stefano
    Samarati, Pierangela
    [J]. COMPUTERS & SECURITY, 2023, 127
  • [47] A distributed query execution engine in a grid enviromment
    Trevisol, Gustavo G.
    Biancardi, Cristiano
    Barbosa, Alvaro C. P.
    Pereira Filho, Jose G.
    Costa, Ramon G.
    Cardoso, Evellin S.
    [J]. CCGRID 2007: SEVENTH IEEE INTERNATIONAL SYMPOSIUM ON CLUSTER COMPUTING AND THE GRID, 2007, : 418 - +
  • [48] Virtual-join: A query execution technique
    Sung, SY
    Sun, P
    Li, Z
    Tan, CL
    [J]. CONFERENCE PROCEEDINGS OF THE 2002 IEEE INTERNATIONAL PERFORMANCE, COMPUTING, AND COMMUNICATIONS CONFERENCE, 2002, : 353 - 357
  • [49] Uncertainty Aware Query Execution Time Prediction
    Wu, Wentao
    Wu, Xi
    Haciguemues, Hakan
    Naughton, Jeffrey F.
    [J]. PROCEEDINGS OF THE VLDB ENDOWMENT, 2014, 7 (14): : 1857 - 1868
  • [50] Controlling web query execution in a web warehouse
    Bhowmick, SS
    Madria, S
    [J]. 13TH INTERNATIONAL WORKSHOP ON DATABASE AND EXPERT SYSTEMS APPLICATIONS, PROCEEDINGS, 2002, : 805 - 809