Self-tuning cost modeling of user-defined functions in an object-relational DBMS

Author:

He Zhen1,Lee Byung Suk2,Snapp Robert2

Affiliation:

1. La Trobe University, Australia

2. University of Vermont, Burlington VT

Abstract

Query optimizers in object-relational database management systems typically require users to provide the execution cost models of user-defined functions (UDFs). Despite this need, however, there has been little work done to provide such a model. The existing approaches are static in that they require users to train the model a priori with pregenerated UDF execution cost data. Static approaches can not adapt to changing UDF execution patterns and thus degrade in accuracy when the UDF executions used for generating training data do not reflect the patterns of those performed during operation. This article proposes a new approach based on the recent trend of self-tuning DBMS by which the cost model is maintained dynamically and incrementally as UDFs are being executed online. In the context of UDF cost modeling, our approach faces a number of challenges, that is, it should work with limited memory, work with limited computation time, and adjust to the fluctuations in the execution costs (e.g., caching effect). In this article, we first provide a set of guidelines for developing techniques that meet these challenges, while achieving accurate and fast cost prediction with small overheads. Then, we present two concrete techniques developed under the guidelines. One is an instance-based technique based on the conventional k -nearest neighbor (KNN) technique which uses a multidimensional index like the R*-tree. The other is a summary-based technique which uses the quadtree to store summary values at multiple resolutions. We have performed extensive performance evaluations comparing these two techniques against existing histogram-based techniques and the KNN technique, using both real and synthetic UDFs/data sets. The results show our techniques provide better performance in most situations considered.

Publisher

Association for Computing Machinery (ACM)

Subject

Information Systems

Reference47 articles.

1. Self-tuning histograms

2. The R*-tree: an efficient and robust access method for points and rectangles

3. Bogartz R. S. 1994. An Introduction to the Analysis of Variance. Praeger Publishers. Bogartz R. S. 1994. An Introduction to the Analysis of Variance. Praeger Publishers.

4. Cost estimation of user-defined methods in object-relational database systems

5. A neural network approach for query cost evaluation;Boulos J.;Trans. Inf. Process. Soc. Japan,1997

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

1. User-Defined Functions in Modern Data Engines;2023 IEEE 39th International Conference on Data Engineering (ICDE);2023-04

2. Scalable Learning to Troubleshoot Query Performance Problems;Proceedings of the 30th ACM International Conference on Information & Knowledge Management;2021-10-26

3. A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumeration;Data Science and Engineering;2021-01-15

4. An active learning approach to build adaptive cost models for web services;Data & Knowledge Engineering;2019-01

5. Short‐term traffic forecasting using self‐adjusting k‐nearest neighbours;IET Intelligent Transport Systems;2017-11-02

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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