A Differential Datalog Interpreter

Author:

Stephenson Matthew James1ORCID

Affiliation:

1. Computer Science Department, Stanford University, Stanford, CA 94305-9045, USA

Abstract

The core reasoning task for datalog engines is materialization, the evaluation of a datalog program over a database alongside its physical incorporation into the database itself. The de-facto method of computing is through the recursive application of inference rules. Due to it being a costly operation, it is a must for datalog engines to provide incremental materialization; that is, to adjust the computation to new data instead of restarting from scratch. One of the major caveats is that deleting data is notoriously more involved than adding since one has to take into account all possible data that has been entailed from what is being deleted. Differential dataflow is a computational model that provides efficient incremental maintenance, notoriously with equal performance between additions and deletions, and work distribution of iterative dataflows. In this paper, we investigate the performance of materialization with three reference datalog implementations, out of which one is built on top of a lightweight relational engine, and the two others are differential-dataflow and non-differential versions of the same rewrite algorithm with the same optimizations. Experimental results suggest that monotonic aggregation is more powerful than ascenting merely the powerset lattice.

Publisher

MDPI AG

Reference31 articles.

1. What you Always Wanted to Know About Datalog (And Never Dared to Ask);Ceri;Knowl. Data Eng. IEEE Trans.,1989

2. Gupta, A.K., and Mumick, I.S. (1999). Incremental Maintenance of Recursive Views: A Survey, IEEE.

3. Abadi, M., McSherry, F., and Plotkin, G. (2015, January 11–18). Foundations of Differential Dataflow. Proceedings of the International Conference on Foundations of Software Science and Computation Structures, London, UK.

4. Ryzhyk, L., and Budiu, M. (2019, January 4–5). Differential Datalog. Proceedings of the Datalog, 3rd International Workshop on the Resurgence of Datalog in Academia and Industry, Philadelphia, PA, USA.

5. Scholz, B., Jordan, H., Subotic, P., and Westmann, T. (2016, January 13–17). On fast large-scale program analysis in Datalog. Proceedings of the 25th International Conference on Compiler Construction, Seoul, Republic of Korea.

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3