Title :
Using EELs, a practical approach to outerjoin and antijoin reordering
Author :
Rao, Jun ; Lindsay, Bruce ; Lohman, Guy ; Pirahesh, Hamid ; Simmen, David
Author_Institution :
IBM Almaden Res. Center, San Jose, CA, USA
Abstract :
Outerjoins and antijoins are two important classes of joins in database systems. Reordering outerjoins and antijoins with innerjoins is challenging because not all the join orders preserve the semantics of the original query. Previous work did not consider antijoins and was restricted to a limited class of queries. We consider using a conventional bottom-up optimizer to reorder different types of joins. We propose extending each join predicate´s eligibility list, which contains all the tables referenced in the predicate. An extended eligibility list (EEL) includes all the tables needed by a predicate to preserve the semantics of the original query. We describe an algorithm that can set up the EELs properly in a bottom-up traversal of the original operator tree. A conventional join optimizer is then modified to check the EELs when generating sub-plans. Our approach handles antijoin and can resolve many practical issues. It is now being implemented in an upcoming release of IBM´s Universal Database Server for Unix, Windows and OS/2
Keywords :
database theory; query processing; relational algebra; relational databases; Universal Database Server; antijoin reordering; bottom-up optimizer; database joins; extended eligibility list; innerjoins; operator tree; outerjoin reordering; query; relational database; Database systems; Employee rights; Relational databases; XML;
Conference_Titel :
Data Engineering, 2001. Proceedings. 17th International Conference on
Conference_Location :
Heidelberg
Print_ISBN :
0-7695-1001-9
DOI :
10.1109/ICDE.2001.914873