Self-tuning cost modeling of user-defined functions in an object-relational DBMS
Authors:
Open Access
- 1 September 2005
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Database Systems
- Vol. 30 (3) , 812-853
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 conventionalk-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.Keywords
This publication has 32 references indexed in Scilit:
- Contorting high dimensional data for efficient main memory KNN processing2003
- A quad-tree based multiresolution approach for two-dimensional summary data2003
- STHoles2001
- Cost estimation of user-defined methods in object-relational database systemsACM SIGMOD Record, 1999
- Self-tuning histograms1999
- Optimization of queries with user-defined predicatesACM Transactions on Database Systems, 1999
- Enhanced nearest neighbour search on the R-treeACM SIGMOD Record, 1998
- Adaptive selectivity estimation using query feedback1994
- The R*-tree: an efficient and robust access method for points and rectangles1990
- Finding Prototypes For Nearest Neighbor ClassifiersIEEE Transactions on Computers, 1974