Speeding Up End-to-end Query Execution via Learning-based Progressive Cardinality Estimation

Author:

Wang Fang1ORCID,Yan Xiao2ORCID,Yiu Man Lung1ORCID,LI Shuai1ORCID,Mao Zunyao2ORCID,Tang Bo2ORCID

Affiliation:

1. The Hong Kong Polytechnic University, Hong Kong, Hong Kong

2. Southern University of Science and Technology, Shen zhen, China

Abstract

Fast query execution requires learning-based cardinality estimators to have short inference time (as model inference time adds to end-to-end query execution time) and high estimation accuracy (which is crucial for finding good execution plan). However, existing estimators cannot meet both requirements due to the inherent tension between model complexity and estimation accuracy. We propose a novel Learning-based Progressive Cardinality Estimator (LPCE), which adopts a query re-optimization methodology. In particular, LPCE consists of an initial model (LPCE-I), which estimates cardinality before query execution, and a refinement model (LPCE-R), which progressively refines the cardinality estimations using the actual cardinalities of the executed operators. During query execution, re-optimization is triggered if the estimations of LPCE-I are found to have large errors, and more efficient execution plans are selected for the remaining operators using the refined estimations provided by LPCE-R. Both LPCE-I and LPCE-R are light-weight query-driven estimators but they achieve both good efficiency and high accuracy when used jointly. Besides designing the models for LPCE-I and LPCE-R, we also integrate re-optimization and LPCE into PostgreSQL, a popular database engine. Extensive experiments show that LPCE yields shorter end-to-end query execution time than state-of-the-art learning-based estimators.

Publisher

Association for Computing Machinery (ACM)

Reference49 articles.

1. Riham Abdel Kader Peter Boncz Stefan Manegold and Maurice Van Keulen. 2009. ROX: run-time optimization of XQueries. In SIGMOD. 615--626. Riham Abdel Kader Peter Boncz Stefan Manegold and Maurice Van Keulen. 2009. ROX: run-time optimization of XQueries. In SIGMOD. 615--626.

2. Self-tuning histograms

3. Musbah Abdulkarim Musbah Ataya and Musab AM Ali . 2019. Acceptance of Website Security on E-banking. A-Review . In IEEE 10th Control and System Graduate Research Colloquium . 201--206. Musbah Abdulkarim Musbah Ataya and Musab AM Ali. 2019. Acceptance of Website Security on E-banking. A-Review. In IEEE 10th Control and System Graduate Research Colloquium. 201--206.

4. Eddies

5. Olivier Chapelle and Lihong Li. 2011. An empirical evaluation of thompson sampling. Advances in neural information processing systems 24 ( 2011 ). Olivier Chapelle and Lihong Li. 2011. An empirical evaluation of thompson sampling. Advances in neural information processing systems 24 (2011).

Cited by 6 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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