The Space Complexity of Processing XML Twig Queries Over Indexed Documents
- 1 April 2008
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- Vol. 14 (10636382) , 824-832
Abstract
Current twig join algorithms incur high memory costs on queries that involve child-axis nodes. In this paper we provide an analytical explanation for this phenomenon. In a first large-scale study of the space complexity of evaluating XPath queries over indexed XML documents we show the space to depend on three factors: (1) whether the query is a path or a tree; (2) the types of axes occurring in the query and their occurrence pattern; and (3) the mode of query evaluation (filtering, full- fledged, or "pattern matching"). Our lower bounds imply that evaluation of a large class of queries that have child-axis nodes indeed requires large space. Our study also reveals that on some queries there is a large gap between the space needed for pattern matching and the space needed for full-fledged evaluation or filtering. This implies that many existing twig join algorithms, which work in the pattern matching mode, incur significant space overhead. We present a new twig join algorithm that avoids this overhead. On certain queries our algorithm is exceedingly more space-efficient than existing algorithms, sometimes bringing the space down from linear in the document size to constant.Keywords
This publication has 15 references indexed in Scilit:
- Efficient Algorithms for the Tree Homeomorphism Problem2007
- TwigStackList ¬: A Holistic Twig Join Algorithm for Twig Query with Not-Predicates on XML DataLecture Notes in Computer Science, 2006
- On boosting holism in XML twig pattern matching using structural indexing techniques2005
- Buffering in query evaluation over XML streams2005
- Querying XML streamsThe VLDB Journal, 2005
- Characterizing memory requirements for queries over continuous data streamsACM Transactions on Database Systems, 2004
- Typing and querying XML documents2003
- The complexity of XPath query evaluation2003
- Holistic Twig Joins on Indexed XML Documents2003
- Holistic twig joins2002