首页> 外国专利> Optimization of extensible markup language path language (XPATH) expressions in a database management system configured to accept extensible markup language (XML) queries

Optimization of extensible markup language path language (XPATH) expressions in a database management system configured to accept extensible markup language (XML) queries

机译:在配置为接受可扩展标记语言(XML)查询的数据库管理系统中优化可扩展标记语言路径语言(XPATH)表达式

摘要

An apparatus, system, and method are disclosed for optimization of XPath expressions in a database management system configured to accept XML queries. Operations of the method include receiving an XQuery representation and partitioning XPath expressions within the XQuery representation into a plurality of XPath expression clusters. The XPath expression clusters may comprise one or more XPath expressions and those in each cluster may operate on a common document. Furthermore, the XPath expressions in each cluster are hierarchically related to each other such that branch nodes of the cluster are executable independent of nodes in other XPath expression clusters. The method also defines merging the one or more XPath expressions into one or more expression trees for each XPath expression cluster. The method generates one or more query execution plans from the one or more XPath expression blocks. The method includes, for each query execution plan, splitting each of the XPath expression blocks into one or more ordered fragments. The method determines a cardinality according to database statistics and an execution cost for each XPath expression block within each query execution plan. Finally, the method determines an aggregate cardinality for each query execution plan and an aggregate execution cost for each query execution plan. Therefore, an XQuery may be optimized at both the global XQuery and local XPath expression block level, improving performance and reducing overhead.
机译:公开了一种用于在数据库管理系统中优化XPath表达式的设备,系统和方法,该数据库管理系统配置为接受XML查询。该方法的操作包括:接收XQuery表示并将XQuery表示内的XPath表达式划分为多个XPath表达式簇。 XPath表达式集群可以包含一个或多个XPath表达式,并且每个集群中的表达式都可以在一个公共文档上运行。此外,每个集群中的XPath表达式在层次结构上彼此相关,以使该集群的分支节点可独立于其他XPath表达式集群中的节点执行。该方法还定义了针对每个XPath表达式群集将一个或多个XPath表达式合并为一个或多个表达式树。该方法从一个或多个XPath表达式块生成一个或多个查询执行计划。对于每个查询执行计划,该方法包括将每个XPath表达式块分成一个或多个有序片段。该方法根据数据库统计信息和每个查询执行计划中每个XPath表达式块的执行成本来确定基数。最后,该方法确定每个查询执行计划的总基数和每个查询执行计划的总执行成本。因此,可以在全局XQuery和本地XPath表达式块级别同时优化XQuery,从而提高性能并减少开销。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号