arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1308.5585cs.DB
收藏

使用视图交集重写语法:可追溯性与完整性

Rewriting XPath Queries using View Intersections: Tractability versus Completeness

Bogdan Cautis, Alin Deutsch, Ioana Ileana, Nicola Onose

摘要:

通过使用视图技术重写来优化XML查询的标准方法包括在视图的输出中导航,从而允许在重写的查询中仅使用一个视图。已经提出了使用节点标识符上的交集或连接来进行更丰富类别的重写的算法,但是它们要么缺乏完整性保证,要么需要关于数据的附加信息。我们确定了最严格的限制下,一个可重写的多项式时间多项式时间使用的交集的意见,并提出了一个算法,适用于任何文件或类型的标识符。作为一个副作用,我们分析了相关问题的复杂性,决定如果一个交集的交集可以等价地重写为一个没有交集或并集。我们扩展了我们的正式研究的基于视图的重写问题,还描述(i)算法更复杂的重写计划,没有限制的数量上的交叉和导航步骤内的视图输出,他们采用,和(ii)适应我们的技术来处理XML文档没有持久的节点ID,在存在的XML键。补充我们的计算复杂性研究,我们描述了我们的技术和可能的选择,可以加快在实践中执行的概念验证实现,关于重写计划是如何建立,测试和执行。我们还对这些技术进行了全面的实验评估,重点是可扩展性和基于视图的计划执行所实现的运行时间改进。

英文摘要:

The standard approach for optimization of XPath queries by rewriting using views techniques consists in navigating inside a view's output, thus allowing the usage of only one view in the rewritten query. Algorithms for richer classes of XPath rewritings, using intersection or joins on node identifiers, have been proposed, but they either lack completeness guarantees, or require additional information about the data. We identify the tightest restrictions under which an XPath can be rewritten in polynomial time using an intersection of views and propose an algorithm that works for any documents or type of identifiers. As a side-effect, we analyze the complexity of the related problem of deciding if an XPath with intersection can be equivalently rewritten as one without intersection or union. We extend our formal study of the view-based rewriting problem for XPath by describing also (i) algorithms for more complex rewrite plans, with no limitations on the number of intersection and navigation steps inside view outputs they employ, and (ii) adaptations of our techniques to deal with XML documents without persistent node Ids, in the presence of XML keys. Complementing our computational complexity study, we describe a proof-of-concept implementation of our techniques and possible choices that may speed up execution in practice, regarding how rewrite plans are built, tested and executed. We also give a thorough experimental evaluation of these techniques, focusing on scalability and the running time improvements achieved by the execution of view-based plans.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑