Optimization techniques for queries with expensive methods

被引:58
作者
Hellerstein, JM [1 ]
机构
[1] Univ Calif Berkeley, Div Comp Sci, EECS, Berkeley, CA 94720 USA
来源
ACM TRANSACTIONS ON DATABASE SYSTEMS | 1998年 / 23卷 / 02期
关键词
expensive methods; extensibility; object-relational databases; Predicate Migration; predicate placement; query optimization;
D O I
10.1145/292481.277627
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Object-relational database management systems allow knowledgeable users to define new data types as well as new methods (operators) for the types. This flexibility produces an attendant complexity, which must be handled in new ways for an object-relational database management system to be efficient. In this article we study techniques for optimizing queries that contain time-consuming methods. The focus of traditional query optimizers has been on the choice of join methods and orders; selections have been handled by "pushdown" rules. These rules apply selections in an arbitrary order before as many joins as possible, using the assumption that selection takes no time. However, users of object-relational systems can embed complex methods in selections. Thus selections may take significant amounts of time, and the query optimization model must be enhanced. In this article we carefully define a query cost framework that incorporates both selectivity and cost estimates for selections. We develop an algorithm called Predicate Migration, and prove that it produces optimal plans for queries with expensive methods. We then describe our implementation of Predicate Migration in the commercial object-relational database management system Illustra, and discuss practical issues that affect our earlier assumptions. We compare Predicate Migration to a variety of simpler optimization techniques, and demonstrate that Predicate Migration is the best general solution to date. The alternative techniques we present may be useful for constrained workloads.
引用
收藏
页码:113 / 157
页数:45
相关论文
共 61 条
[51]  
Smith W., 1956, Naval Res. Logistics Q., V3, P59, DOI DOI 10.1002/NAV.3800030106
[52]  
STEINBRUNN M, 1995, P 21 INT C VER LARG
[53]   THE POSTGRES NEXT-GENERATION DATABASE-MANAGEMENT SYSTEM [J].
STONEBRAKER, M ;
KEMNITZ, G .
COMMUNICATIONS OF THE ACM, 1991, 34 (10) :78-92
[54]  
STONEBRAKER M, 1991, P ACM SIGMOD INT C M, P2
[55]  
STONEBRAKER M, 1993, P ACM SIGMOD INT C M, P2
[56]  
SWAMI A, 1992, 8812 RJ IBM AL RES C
[57]  
SWAMI A, 1988, P ACM SIGMOD INT C M, P8
[58]  
TURBYFILL C, 1989, P IEEE COMPCON SPRIN
[59]  
Wong E., 1976, ACM Transactions on Database Systems, V1, P223, DOI 10.1145/320473.320479
[60]  
YAJIMA K, 1991, P 2 INT S DAT SYST A, P366