Efficient evaluation of generalized tree-pattern queries on XML streams

被引:0
|
作者
Xiaoying Wu
Dimitri Theodoratos
Calisto Zuzarte
机构
[1] New Jersey Institute of Technology,
[2] IBM Canada Ltd.,undefined
来源
The VLDB Journal | 2010年 / 19卷
关键词
XML; XPath evaluation; XML streams;
D O I
暂无
中图分类号
学科分类号
摘要
The streaming evaluation is a popular way of evaluating queries on XML documents. Besides its many advantages, it is also the only option for a number of important XML applications. Unfortunately, existing algorithms focus almost exclusively on tree-pattern queries (TPQs). Requirements for flexible querying of XML data have motivated recently the introduction of query languages that are more general and flexible than TPQs. These languages are not supported by existing algorithms. In this paper, we consider a partial tree-pattern query (PTPQ) language which generalizes and strictly contains TPQs. PTPQs can express a fragment of XPath which comprises reverse axes and the node identity equality (is) operator, in addition to forward axes, wildcards and predicates. They constitute an important subclass of XPath, which is very useful in practice. Unfortunately, previous streaming algorithms for TPQs cannot be applied to PTPQs. PTPQs can be represented as dags enhanced with constraints. We explore this representation to design an original polynomial time streaming algorithm for PTPQs. Our algorithm aggressively filters incoming data that is irrelevant to the query and wisely avoids processing redundant query matches (i.e., matches of the query dag that do not contribute to new solutions). Our algorithm is the first one to support the streaming evaluation of such a broad fragment of XPath. We provide an analysis of it, and conduct an extensive experimental evaluation of its performance and scalability. Compared to the only known streaming algorithm that supports TPQs extended with reverse axes, our algorithm performs better by orders of magnitude while consuming a much smaller fraction of memory space. Current streaming applications have stringent requirements on query response time and memory consumption because of the large (possibly unbounded) size of data they handle. In order to keep memory usage and CPU consumption low for the PTPQ streaming evaluation, we design another streaming algorithm called Eager PSX for PTPQs. Its key feature is that it applies an eager evaluation strategy to quickly determine when node matches should be returned as solutions to the user and also to proactively detect redundant matches. We theoretically analyze Eager PSX, and experimentally test its time and space performance and scalability. We compare it with PSX. Our results show that Eager PSX not only achieves better space performance without compromising time performance, but it also greatly improves query response time for both simple and complex queries, in many cases, by orders of magnitude.
引用
收藏
页码:661 / 686
页数:25
相关论文
共 50 条
  • [1] Efficient evaluation of generalized tree-pattern queries on XML streams
    Wu, Xiaoying
    Theodoratos, Dimitri
    Zuzarte, Calisto
    VLDB JOURNAL, 2010, 19 (05): : 661 - 686
  • [2] Eager Evaluation of Partial Tree-Pattern Queries on XML Streams
    Theodoratos, Dimitri
    Wu, Xiaoying
    DATABASE SYSTEMS FOR ADVANCED APPLICATIONS, PROCEEDINGS, 2009, 5463 : 241 - 246
  • [3] Efficient Evaluation of Generalized Tree-Pattern Queries with Same-Path Constraints
    Wu, Xiaoying
    Theodoratos, Dimitri
    Souldatos, Stefanos
    Dalamagas, Theodore
    Sellis, Timos
    SCIENTIFIC AND STATISTICAL DATABASE MANAGEMENT, PROCEEDINGS, 2009, 5566 : 361 - +
  • [4] S3: Evaluation of tree-pattern XML queries supported by structural summaries
    Izadi, Sayyed Kamyar
    Haerder, Theo
    Haghjoo, Mostafa S.
    DATA & KNOWLEDGE ENGINEERING, 2009, 68 (01) : 126 - 145
  • [5] Scalable Filtering of Multiple Generalized-Tree-Pattern Queries over XML Streams
    Chen, Songting
    Li, Hua-Gang
    Tatemura, Jun'ichi
    Hsiung, Wang-Pin
    Agrawal, Divyakant
    Candan, K. Selcuk
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2008, 20 (12) : 1627 - 1640
  • [6] Schema-driven evaluation of approximate tree-pattern queries
    Schlieder, T
    ADVANCES IN DATABASE TECHNOLOGY - EDBT 2002, 2002, 2287 : 514 - 532
  • [7] A novel framework for the efficient evaluation of hybrid tree-pattern queries on large data graphs
    Wu, Xiaoying
    Theodoratos, Dimitri
    Skoutas, Dimitrios
    Lan, Michael
    INFORMATION SYSTEMS, 2023, 117
  • [8] Efficient minimization of XML tree pattern queries
    Che, DR
    Liu, YP
    INTERNATIONAL CONFERENCE ON NEXT GENERATION WEB SERVICES PRACTICES, 2005, : 447 - 448
  • [9] Efficient Processing of XML Tree Pattern Queries
    Chen, Yangjun
    Che, Dunren
    JOURNAL OF ADVANCED COMPUTATIONAL INTELLIGENCE AND INTELLIGENT INFORMATICS, 2006, 10 (05) : 738 - 743
  • [10] S3: Processing tree-pattern XML queries with all logical operators
    Izadi, Sayyed Kamyar
    Haghjoo, Mostafa S.
    Haerder, Theo
    DATA & KNOWLEDGE ENGINEERING, 2012, 72 : 31 - 62