结构化XML查询处理的去神话化:整体和二元方法的比较,技术报告
Demythization of Structural XML Query Processing: Comparison of Holistic and Binary Approaches, Technical Report
摘要:
XML查询可以用小枝模式查询(TPQ)来建模,TPQ指定XML节点上的谓词以及它们之间满足的谓词关系。已经提出了很多的TPQ类型,本文考虑到TPQ模型扩展的输出和非输出查询节点的规范,因为它符合XQuery语义,在许多情况下,它会导致更有效的查询处理。一般来说,有两种方法来处理TPQ:整体连接和二元连接。尽管二元连接方法将查询计划构建为互连二元运算符的树,但是整体连接方法使用一个运算符(即,使用一个复杂的算法)。令人惊讶的是,一个彻底的分析和实验比较仍然缺失,尽管在这一领域的巨大的研究努力。在本文中,我们试图填补这一空白;我们分析和实验表明,在完全流水线计划(即,其中每个连接操作不等待前一操作的完整结果并且不使用显式排序的计划)通常可以优于整体连接,特别是对于具有较高比例的非输出查询节点的TPQ。本文的主要贡献可归纳如下:(i)我们介绍了现有二进制连接方法的几种改进,允许为考虑非输出查询节点的TPQ构建完全流水线计划,(二)其他事项我们证明了对于某类TPQ,这样的计划具有关于输入和输出大小的线性时间复杂度以及关于XML的线性空间复杂度文档深度(即,相同的复杂性的整体连接方法),(iii)我们表明,我们改进的二进制连接方法优于整体连接方法在许多情况下,和(iv)我们提出了一个简单的组合方法,使用这两种类型的方法的优点。
英文摘要:
XML query can be modeled by twig pattern query (TPQ) specifying predicates on XML nodes and XPath relationships satisfied between them. A lot of TPQ types have been proposed; this paper takes into account a TPQ model extended by a specification of output and non-output query nodes since it complies with the XQuery semantics and, in many cases, it leads to a more efficient query processing. In general, there are two approaches to process the TPQ: holistic joins and binary joins. Whereas the binary join approach builds a query plan as a tree of interconnected binary operators, the holistic join approach evaluates a whole query using one operator (i.e., using one complex algorithm). Surprisingly, a thorough analytical and experimental comparison is still missing despite an enormous research effort in this area. In this paper, we try to fill this gap; we analytically and experimentally show that the binary joins used in a fully-pipelined plan (i.e., the plan where each join operation does not wait for the complete result of the previous operation and no explicit sorting is used) can often outperform the holistic joins, especially for TPQs with a higher ratio of non-output query nodes. The main contributions of this paper can be summarized as follows: (i) we introduce several improvements of existing binary join approaches allowing to build a fully-pipelined plan for a TPQ considering non-output query nodes, (ii) we prove that for a certain class of TPQs such a plan has the linear time complexity with respect to the size of the input and output as well as the linear space complexity with respect to the XML document depth (i.e., the same complexity as the holistic join approaches), (iii) we show that our improved binary join approach outperforms the holistic join approaches in many situations, and (iv) we propose a simple combined approach that uses advantages of both types of approaches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。