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)
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篇论文的施引文献,订阅后可以查看论文全部施引文献