首页> 外文期刊>Journal of computer and system sciences >View disassembly: A rewrite that extracts portions of views
【24h】

View disassembly: A rewrite that extracts portions of views

机译:视图反汇编:提取部分视图的重写

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

摘要

We explore a new form of view rewrite called view disassembly. The objective is to rewrite views in order to "remove" certain sub-views (or unfoldings) of the view. This becomes pertinent for complex views which may be defined over other views and which may involve union. Such complex views arise necessarily in environments such as data warehousing and mediation over heterogeneous databases. View disassembly can be used for view and query optimization, preserving data security, making use of cached queries and materialized views, and view maintenance. We provide computational complexity results of view disassembly. One question is whether the unfoldings to be removed effectively cover the view, meaning that the disassembled view is effectively the empty view, evaluating to the empty table. We illustrate the complexity to determine when a collection of unfoldings cover the view definition. The problem is NP-hard with respect to the number of unfoldings to remove, but not with respect to the size (complexity) of the view definition. We next consider rewrites optimal in the size of the rewritten (disassembled) view. We prove that this task is NP-hard for a special class of views, but this time NP-hard in a worse way: it is NP-hard this time with respect to the size of the view definition in addition to the number of unfoldings to be removed. In general, we suspect the problem is computationally even harder, and we show that the general problem is in Π_2~p. However, we provide good news too. We identify a pertinent class of unfoldings for which the removal of such unfoldings always results in a simpler disassembled view than the original view itself. We also develop an algorithm that finds rewrites equivalent to the disassembled view which are, in a sense, locally optimal. The algorithm establishes a cover completion by finding a (minimal) collection of unfoldings of the view that, along with the unfoldings to be removed, covers the original view. This approach is effectively tractable, unlike the search for globally, or absolutely, optimal rewrites. Furthermore, we show that these cover-completion rewrites are preferable to absolutely optimal rewrites in many ways.
机译:我们探索了一种新的视图重写形式,称为视图反汇编。目的是重写视图,以便“删除”视图的某些子视图(或展开)。这对于可以在其他视图上定义并且可能涉及并集的复杂视图变得很重要。这种复杂的视图必然出现在诸如数据仓库和异构数据库中介的环境中。视图反汇编可用于视图和查询优化,保留数据安全性,利用缓存的查询和实例化视图以及视图维护。我们提供视图分解的计算复杂度结果。一个问题是要删除的展开是否有效地覆盖了视图,这意味着分解后的视图实际上是空视图,评估为空表。我们说明了确定何时展开的集合覆盖视图定义的复杂性。对于要删除的展开次数,问题是NP困难的,但对于视图定义的大小(复杂性)却不是问题。接下来,我们认为重写在重写(分解)视图的大小方面是最佳的。我们证明对于特殊类型的视图,此任务是NP困难的,但这次是NP困难的,它以一种较差的方式进行:这次,除了视图的数目之外,就视图定义的大小而言,这也是NP困难的即将被删除。通常,我们怀疑该问题在计算上更加困难,并且我们证明了一般问题在Π_2〜p中。但是,我们也提供了一个好消息。我们确定了相关的一类展开,对于这些展开,移除这些展开总是会导致比原始视图本身更简单的分解视图。我们还开发了一种算法,该算法可以找到等效于反汇编视图的重写,从某种意义上说,重写是局部最优的。该算法通过找到视图的展开的(最小)集合来建立覆盖完成,该视图的展开与要除去的展开一起覆盖原始视图。与寻求全局或绝对最佳重写不同,此方法有效地易于处理。此外,我们证明,在许多方面,这些覆盖完成的重写优于绝对最佳的重写。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号