Title :
Structural join order selection for XML query optimization
Author :
Wu, Yuqing ; Patel, Jignesh M. ; Jagadish, H.V.
Author_Institution :
Michigan Univ., MI, USA
Abstract :
Structural join operations are central to evaluating queries against XML data, and are typically responsible for consuming a lion´s share of the query processing time. Thus, structural join order selection is at the heart of query optimization in an XML database, just as (value-based) join order selection is central to relational query optimization. We introduce five algorithms for structural join order optimization for XML tree pattern matching and present an extensive experimental evaluation. Our experiments demonstrate that many relational rules of thumb are no longer appropriate: for instance, using dynamic programming style optimization is not efficient; limiting consideration to left-deep plans usually misses the best solution. Our experiments also show that a dynamic programming optimization with pruning (DPP) algorithm can find the optimal solution, with low cost relative to the traditional dynamic programming (DP) algorithm; and an optimization technique that only considers fully pipelined (FP) plans can very quickly choose a plan that in most cases is close to optimal. Our recommendation is that DPP should be used in XML query optimizers where query execution time is expected to be significant, and that FP should be used where it is important to find a good (but not necessarily the best) plan quickly.
Keywords :
XML; dynamic programming; pattern matching; query formulation; query processing; relational databases; tree data structures; XML database; XML query optimization; XML tree pattern matching; dynamic programming optimization with pruning; fully pipelined plans; query processing time; relational databases; structural join order selection; Cost function; Dynamic programming; Heart; Heuristic algorithms; Mirrors; Pattern matching; Query processing; Relational databases; Thumb; XML;
Conference_Titel :
Data Engineering, 2003. Proceedings. 19th International Conference on
Print_ISBN :
0-7803-7665-X
DOI :
10.1109/ICDE.2003.1260812