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 条
[1]  
[Anonymous], P ACM SIGMOD C MAN D
[2]  
BITTON D, 1983, P 9 INT C VER LARG D
[3]  
CAREY MJ, 1994, P ACM C OBJ OR PROGR, P414
[4]  
CATTELL RGG, 1994, OBJECT DATABASE STAN
[5]   DECOMPOSITION - AN APPROACH FOR OPTIMIZING QUERIES INCLUDING ADT FUNCTIONS [J].
CHEN, HX ;
YU, X ;
YAMAGUCHI, K ;
KITAGAWA, H ;
OHBO, N ;
FUJIWARA, Y .
INFORMATION PROCESSING LETTERS, 1992, 43 (06) :327-333
[6]  
Chimenti D., 1989, Proceedings of the Fifteenth International Conference on Very Large Data Bases, P195
[7]  
Dayal U., 1987, Proceedings of the Thirteenth International Conference on Very Large Data Bases: 1987 13th VLDB, P197
[8]  
DU WM, 1992, PROC INT CONF VERY L, P277
[9]  
Faloutsos C., 1994, Proceedings of the Thirteenth ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems. PODS 1994, P4, DOI 10.1145/182591.182593
[10]  
FREW J, 1995, COMMUNICATION