Algebraic XQuery Decorrelation with Order Sensitive Operations

XQuery, the defacto XML query language, is typically composed of highly nested expressions. Iterative execution of such expressions tends to be intuitive but inefficient. Instead, decorrelation of nested XQuery expressions opens up the opportunity for significant query optimization. Although several algorithms have been proposed to optimize nested XQueries, these works pay little attention to the ordered semantics of XQuery expressions. The appropriate extension of decorrelation to XQuery with multiple level orderby clauses and other order sensitive functions hence represents an important and non-trivial task. We propose an algebraic rewriting technique of nested XQuery expressions containing explicit orderby clauses. The proposed work successfully addresses the challenges caused by the hierarchical nature and the ordered semantics of XQuery expressions. Using a running example, our decorrelation algorithm is illustrated. Further, we show the performance gain achievable by our approach via an experimental study.

[1]  Elke A. Rundensteiner,et al.  Rainbow: mapping-driven XQuery processing system , 2002, SIGMOD '02.

[2]  Eugene J. Shekita,et al.  Querying XML Views of Relational Data , 2001, VLDB.

[3]  Guido Moerkotte,et al.  Algebraic XML construction in Natix , 2001, Proceedings of the Second International Conference on Web Information Systems Engineering.

[4]  Norman May,et al.  Nested queries and quantifiers in an ordered context , 2004, Proceedings. 20th International Conference on Data Engineering.

[5]  Laks V. S. Lakshmanan,et al.  On Testing Satisfiability of Tree Pattern Queries , 2004, VLDB.

[6]  Won Kim,et al.  On optimizing an SQL-like nested query , 1982, TODS.

[7]  Hamid Pirahesh,et al.  Complex query decorrelation , 1996, Proceedings of the Twelfth International Conference on Data Engineering.

[8]  Ioana Manolescu,et al.  XMark: A Benchmark for XML Data Management , 2002, VLDB.

[9]  Steven J. DeRose,et al.  XML Path Language (XPath) Version 1.0 , 1999 .

[10]  Antonio Albano,et al.  Yet another query algebra for XML data , 2002, Proceedings International Database Engineering and Applications Symposium.

[11]  Dan Suciu,et al.  Containment and equivalence for an XPath fragment , 2002, PODS.

[12]  Hamid Pirahesh,et al.  A Framework for Using Materialized XPath Views in XML Query Processing , 2004, VLDB.

[13]  Scott Boag,et al.  XQuery 1.0 : An XML Query Language , 2007 .

[14]  Laks V. S. Lakshmanan,et al.  Grouping in XML , 2002, EDBT Workshops.

[15]  Leonidas Fegaras,et al.  Query unnesting in object-oriented databases , 1998, SIGMOD '98.

[16]  David Levine,et al.  Query processing of streamed XML data , 2002, CIKM '02.

[17]  Werner Kießling On Semantic Reefs and Efficient Processing of Correlation Queries with Aggregates , 1985, VLDB.

[18]  Guido Moerkotte,et al.  Nested Queries in Object Bases , 1993, DBPL.

[19]  Catriel Beeri,et al.  SAL: An Algebra for Semistructured Data and XML , 1999, WebDB.

[20]  Umeshwar Dayal,et al.  Of Nests and Trees: A Unified Approach to Processing Queries That Contain Nested Subqueries, Aggregates, and Quantifiers , 1987, VLDB.

[21]  Ioana Manolescu,et al.  Answering XML Queries on Heterogeneous Data Sources , 2001, VLDB.