首页> 外文会议>Twenty-ninth International Conference on Very Large Databases; Sep 9-12, 2003; Berlin, Germany >From Tree Patterns to Generalized Tree Patterns: On Efficient Evaluation of XQuery
【24h】

From Tree Patterns to Generalized Tree Patterns: On Efficient Evaluation of XQuery

机译:从树模式到广义树模式:XQuery的有效评估

获取原文
获取原文并翻译 | 示例

摘要

XQuery is the de facto standard XML query language, and it is important to have efficient query evaluation techniques available for it. A core operation in the evaluation of XQuery is the finding of matches for specified tree patterns, and there has been much work towards algorithms for finding such matches efficiently. Multiple XPath expressions can be evaluated by computing one or more tree pattern matches. However, relatively little has been done on efficient evaluation of XQuery queries as a whole. In this paper, we argue that there is much more to XQuery evaluation than a tree pattern match. We propose a structure called generalized tree pattern (GTP) for concise representation of a whole XQuery expression. Evaluating the query reduces to finding matches for its GTP. Using this idea we develop efficient evaluation plans for XQuery expressions, possibly involving join, quantifiers, grouping, aggregation, and nesting. XML data often conforms to a schema. We show that using relevant constraints from the schema, one can optimize queries significantly, and give algorithms for automatically inferring GTP simplifications given a schema. Finally, we show, through a detailed set of experiments using the TIMBER XML database system, that plans via GTPs (with or without schema knowledge) significantly outperform plans based on navigation and straightforward plans obtained directly from the query.
机译:XQuery是事实上的标准XML查询语言,拥有有效的查询评估技术很重要。 XQuery评估中的一项核心操作是查找指定树型模式的匹配项,并且在有效查找此类匹配项的算法方面已有许多工作。可以通过计算一个或多个树模式匹配来评估多个XPath表达式。但是,对XQuery查询整体进行有效评估的工作相对较少。在本文中,我们认为XQuery评估比树模式匹配要多得多。我们提出了一种称为广义树模式(GTP)的结构,用于简洁表示整个XQuery表达式。评估查询简化为为其GTP查找匹配项。使用这个想法,我们为XQuery表达式开发了有效的评估计划,可能涉及联接,限定词,分组,聚合和嵌套。 XML数据通常符合架构。我们证明,使用模式中的相关约束,可以显着优化查询,并提供算法以自动推断给定模式的GTP简化。最后,我们通过使用TIMBER XML数据库系统进行的一组详细实验显示,通过GTP(具有或不具有模式知识)的计划明显优于基于导航和直接从查询获得的直接计划的计划。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号