POLAR: Adaptive and Non-invasive Join Order Selection via Plans of Least Resistance

Author:

Justen David1,Ritter Daniel2,Fraser Campbell3,Lamb Andrew4,Lee Allison5,Bodner Thomas6,Haddad Mhd Yamen7,Zeuch Steffen1,Markl Volker1,Boehm Matthias1

Affiliation:

1. TU Berlin

2. SAP

3. Google

4. Nga Tran, InfluxData

5. Snowflake

6. Hasso Plattner Institute, University of Potsdam

7. INRIA, Ecole Polytechnique

Abstract

Join ordering and query optimization are crucial for query performance but remain challenging due to unknown or changing characteristics of query intermediates, especially for complex queries with many joins. Over the past two decades, a spectrum of techniques for adaptive query processing (AQP)---including inter-/intra-operator adaptivity and tuple routing---have been proposed to address these challenges. However, commercial database systems in practice do not implement holistic AQP techniques because they increase the system complexity (e.g., intertwined planning and execution) and thus, complicate debugging and testing. Additionally, existing approaches may incur large overheads, leading to problematic performance regressions. In this paper, we introduce POLAR, a simple yet very effective technique for a self-regulating selection of alternative join orderings with bounded overhead. We enhance left-deep join pipelines with alternative join orders, perform regret-bounded tuple routing to find and validate "plans of least resistance", and then process the majority of tuple batches through these plans. We study different join order selection techniques, different routing strategies, and a variety of workload characteristics. Our experiments with a POLAR prototype in DuckDB show runtime improvements of up to 9x and less than 7% overhead for all benchmark queries, while outperforming state-of-the-art AQP systems by up to 15x.

Publisher

Association for Computing Machinery (ACM)

Reference102 articles.

1. Daniel J. Abadi, Yanif Ahmad, Magdalena Balazinska, Ugur Çetintemel, Mitch Cherniack, Jeong-Hyon Hwang, Wolfgang Lindner, Anurag Maskey, Alex Rasin, Esther Ryvkina, Nesime Tatbul, Ying Xing, and Stanley B. Zdonik. 2005. The Design of the Borealis Stream Processing Engine. In CIDR. 277--289. http://cidrdb.org/cidr2005/papers/P23.pdf

2. Aurora: a new model and architecture for data stream management

3. On the stability of plan costs and the costs of plan stability

4. Ashraf Aboulnaga Peter J. Haas Sam Lightstone Guy M. Lohman Volker Markl Ivan Popivanov and Vijayshankar Raman. 2004. Automated Statistics Collection in DB2 UDB. In VLDB. 10.1016/B978-012088469-8.50100-5

5. The dataflow model

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3