Self-tuning cost modeling of user-defined functions in an object-relational DBMS
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 …
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 …
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.
ACM Digital Library
以上显示的是最相近的搜索结果。 查看全部搜索结果