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 条
  • [21] Using snapshot query fidelity to adapt continuous query execution
    Payton, Jamie
    Julien, Christine
    Rajamani, Vasanth
    Roman, Gruia-Catalin
    [J]. PERVASIVE AND MOBILE COMPUTING, 2012, 8 (03) : 317 - 330
  • [22] Reordering query and rule patterns for query answering in a Rete-based inference engine
    Ünalir, MO
    Özacar, T
    Öztürk, Ö
    [J]. WEB INFORMATION SYSTEMS ENGINEERING - WISE 2005 WORKSHOPS, PROCEEDINGS, 2005, 3807 : 255 - 265
  • [23] Self-monitoring query execution for adaptive query processing
    Gounaris, A
    Paton, NW
    Fernandes, AAA
    Sakellariou, R
    [J]. DATA & KNOWLEDGE ENGINEERING, 2004, 51 (03) : 325 - 348
  • [24] The CQL continuous query language: semantic foundations and query execution
    Arvind Arasu
    Shivnath Babu
    Jennifer Widom
    [J]. The VLDB Journal, 2006, 15 : 121 - 142
  • [25] Filter Representation in Vectorized Query Execution
    Ngom, Amadou
    Menon, Prashanth
    Butrovich, Matthew
    Ma, Lin
    Lim, Wan Shen
    Mowry, Todd C.
    Pavlo, Andrew
    [J]. 17TH INTERNATIONAL WORKSHOP ON DATA MANAGEMENT ON NEW HARDWARE, DAMON 2021, 2021,
  • [26] Thrifty Query Execution via Incrementability
    Tang, Dixin
    Shang, Zechao
    Elmore, Aaron J.
    Krishnan, Sanjay
    Franklin, Michael J.
    [J]. SIGMOD'20: PROCEEDINGS OF THE 2020 ACM SIGMOD INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2020, : 1241 - 1256
  • [27] The XML Query Execution Engine (XEE)
    Scheffner, D
    Freytag, JC
    [J]. DATABASES AND INFORMATION SYSTEMS II, 2002, : 81 - 94
  • [28] Doppler: Understanding Serverless Query Execution
    Bodner, Thomas
    Pietz, Tobias
    Bollmeier, Lars Jonas
    Ritter, Daniel
    [J]. PROCEEDINGS OF THE INTERNATIONAL WORKSHOP ON BIGIG DATA IN EMERGENT DISTRIBUTED ENVIRONMENTS (BIDEDE 2022), 2022,
  • [29] On query execution over encrypted data
    Baby, Tinu
    Cherukuri, Aswani Kumar
    [J]. SECURITY AND COMMUNICATION NETWORKS, 2015, 8 (02) : 321 - 331
  • [30] An authorization model for query execution in the cloud
    di Vimercati, Sabrina De Capitani
    Foresti, Sara
    Jajodia, Sushil
    Livraga, Giovanni
    Paraboschi, Stefano
    Samarati, Pierangela
    [J]. VLDB JOURNAL, 2022, 31 (03): : 555 - 579