【24h】

Queries Independent of Updates

机译:查询与更新无关

获取原文

摘要

This paper considers the problem of detecting independence of a queries expressed by datalog programs from updates. We provide new insight into the independence problem by reducing it to the equivalence problem for datalog programs (both for the case of insertion and deletion updates). Equivalence, as well as independence, is unde-cidable in general. However, algorithms for detecting subclasses of equivalence provide sufficient (and sometimes also necessary) conditions for independence. We consider two such subclasses. The first, query-reachability, generalizes previous work on independence [BCL89, E190], which dealt with nonrecursive programs with a single occurrence of the updated predicate. Using recent results on query-reachability [LS92, LMSS93], we generalize these earlier independence tests to arbitrary recursive datalog queries with dense-order constraints and negated EDB subgoals. The second subclass is uniform equivalence (introduced in [Sa88]). We extend the results of [Sa88] to datalog programs that include dense-order constraints and stratified negation. Based on these extensions, we present new cases in which independence is decidable and give algorithms that are sound for the general case. Aside for their use in detecting independence, the algorithms for detecting uniform equivalence are also important for optimizing datalog programs.
机译:本文考虑从更新中检测到Datalog程序表达的查询的独立性的问题。我们通过将其降低到Datalog程序的等价问题(用于插入和删除更新的情况),为独立问题提供新的洞察。等价,以及独立于一般是Conte-Cidable。然而,用于检测等效子类的算法提供足够的(有时也需要的)独立性条件。我们考虑两个这样的子类。首先,查询可达性,概括了上一个关于独立的工作[BCL89,E190],该工作与单一发生更新的谓词的非持久性程序。在查询可达[LS92,LMSS93]使用最近的结果,我们概括这些早期的独立测试,以密集的顺序的限制和否定EDB子目标任意递归数据记录查询。第二个子类是均匀的等价(在[SA88]中引入)。我们将[SA88]的结果扩展到Datalog程序,包括密集订单约束和分层否定。基于这些扩展,我们提出了新案例,其中独立是可判定的,并为常规情况提供声音的算法。除了在检测独立方面的使用之外,用于检测均匀等价的算法对于优化DataLog程序也很重要。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号