Structural XQuery and XPath queries are often modeled by twig pattern queries (TPQs) specifying predicates on XML nodes and structural relationships to be satisfied between them. This paper considers a TPQ model extended by a specification of output and non-output query nodes since it complies with the XQuery and XPath semantics. There are two types of TPQ processing approaches: binary joins and holistic joins. The binary joins utilize a query plan of interconnected binary operators, whereas the holistic joins are based on one complex operator to process the whole query. In the recent years, the holistic joins have been considered as the state-of-the-art TPQ processing method. However, a thorough analytical and experimental comparison of binary and holistic joins has been missing despite an enormous research effort in this area. In this paper, we try to fill this gap. We introduce several improvements of the binary join operators which enable us to build a so-called fully-pipelined (FP) query plan for any TPQ with the specification of output and non-output query nodes. We analytically show that, for a class of queries, the proposed approach has the same time and space complexity as holistic joins, and we experimentally demonstrate that the proposed approach outperforms holistic joins in many cases.
[1]
Tok Wang Ling,et al.
Optimal and efficient generalized twig pattern processing: a combination of preorder and postorder filterings
,
2012,
The VLDB Journal.
[2]
Zhiwei Xu,et al.
Structural Semi-Join: A light-weight structural join operator for efficient XML path query pattern matching
,
2007,
11th International Database Engineering and Applications Symposium (IDEAS 2007).
[3]
Divesh Srivastava,et al.
Holistic twig joins: optimal XML pattern matching
,
2002,
SIGMOD '02.
[4]
Jignesh M. Patel,et al.
Structural join order selection for XML query optimization
,
2003,
Proceedings 19th International Conference on Data Engineering (Cat. No.03CH37405).
[5]
Jignesh M. Patel,et al.
Structural joins: a primitive for efficient XML query pattern matching
,
2002,
Proceedings 18th International Conference on Data Engineering.