...
首页> 外文期刊>Theory and Practice of Logic Programming >Fixpoint semantics and optimization of recursive Datalog programs with aggregates
【24h】

Fixpoint semantics and optimization of recursive Datalog programs with aggregates

机译:Fixpoint语义和具有聚合的递归Datalog程序的优化

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

摘要

A very desirable Datalog extension investigated by many researchers in the last 30 years consists in allowing the use of the basic SQL aggregates min, max, count and sum in recursive rules. In this paper, we propose a simple comprehensive solution that extends the declarative least-fixpoint semantics of Horn Clauses, along with the optimization techniques used in the bottom-up implementation approach adopted by many Datalog systems. We start by identifying a large class of programs of great practical interest in which the use of min or max in recursive rules does not compromise the declarative fixpoint semantics of the programs using those rules. Then, we revisit the monotonic versions of count and sum aggregates proposed by Mazuran et al. (2013b, The VLDB Journal 22, 4, 471-493) and named, respectively, mcount and msum. Since mcount, and also msum on positive numbers, are monotonic in the lattice of set-containment, they preserve the fixpoint semantics of Horn Clauses. However, in many applications of practical interest, their use can lead to inefficiencies, that can be eliminated by combining them with max, whereby mcount and msum become the standard count and sum. Therefore, the semantics and optimization techniques of Datalog are extended to recursive programs with min, max, count and sum, making possible the advanced applications of superior performance and scalability demonstrated by BigDatalog (Shkapsky et al. 2016. In SIGMOD. ACM, 1135-1149) and Datalog-MC (Yang et al. 2017. The VLDB Journal 26, 2, 229-248).
机译:最近30年来,许多研究人员对Datalog进行了非常理想的扩展,其中包括允许在递归规则中使用最小,最大,计数和总和等基本SQL聚合。在本文中,我们提出了一个简单的综合解决方案,扩展了Horn子句的声明性最小定点语义,以及许多Datalog系统采用的自下而上实现方法中使用的优化技术。我们首先确定一类具有重大实际意义的程序,其中在递归规则中使用min或max不会损害使用这些规则的程序的声明性定点语义。然后,我们回顾一下Mazuran等人提出的计数和总和的单调形式。 (2013b,VLDB Journal 22,4,471-493)并分别命名为mcount和msum。由于mcount以及正数上的msum在集合包含格中是单调的,因此它们保留了Horn子句的定点语义。但是,在许多实际应用中,它们的使用会导致效率低下,可以通过将它们与max结合使用来消除效率低下的问题,从而使mcount和msum成为标准计数和总和。因此,Datalog的语义和优化技术已扩展到具有最小,最大,计数和总和的递归程序,从而使BigDatalog展示了具有优越性能和可伸缩性的高级应用程序(Shkapsky等人,2016年。在SIGMOD。ACM中,1135- 1149)和Datalog-MC(Yang et al.2017.VLDB Journal 26,2,229-248)。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号