作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 软件技术与数据库 • 上一篇    下一篇

基于部分求值的Twig查询优化

高万辰,廖湖声,苏航   

  1. (北京工业大学计算机学院,北京 100124)
  • 收稿日期:2015-01-23 出版日期:2016-03-15 发布日期:2016-03-15
  • 作者简介:高万辰(1987-),男,硕士研究生,主研方向为XML数据库技术;廖湖声,教授、博士生导师;苏航,讲师、博士。
  • 基金资助:

    国家自然科学青年基金资助项目“XQuery语言运行时自动程序例化技术的研究”(61202074);北京市自然科学基金资助项目“面向XQuery语言的树模式查询技术研究”(4122011)。

Twig Query Optimization Based on Partial Evaluation

GAO Wanchen,LIAO Husheng,SU Hang   

  1. (College of Computer Science,Beijing University of Technology,Beijing 100124,China)
  • Received:2015-01-23 Online:2016-03-15 Published:2016-03-15

摘要:

TreeMatch算法是一种有效的Twig查询匹配算法,但其存在反复分析Twig模式的缺点。针对该问题,引入编译中的部分求值技术,提出一种Twig查询优化方案。通过部分求值提前完成对Twig模式的分析,生成查询专用的指令序列代替原查询程序,并给出查询机执行引擎,从而消除重复计算,优化XML树模式查询过程。实验结果表明,在不同Twig模式下,该优化方案能够有效提高XML查询的执行效率。

关键词: 可扩展标记语言数据库, XQuery语言, XPath语言, Twig查询, 编译, 部分求值, 树模式查询

Abstract:

TreeMatch algorithm is widely considered to be an effective Twig query algorithm.According to the disadvantage of TreeMatch algorithm’s repeated analysis on Twig pattern,partial evaluation technology in the field of compilation is applied,and a Twig query optimization scheme is proposed.Analysis on Twig pattern is completed ahead of scheduling through partial evaluation,generating instruction sequences for query to replace the original query program,and a special execution engine of query machine is provided,thus eliminating repeated calculation and optimizing the eXtensible Markup Language(XML) tree pattern query.Experimental results show that the proposed optimization scheme can effectively improve the execution efficiency of XML query in different Twig patterns.

Key words: eXtensible Markup Language(XML) database, XQuery language, XPath language, Twig query, compilation, partial evaluation, tree pattern query

中图分类号: