Incremental Evaluation of Dynamic Datalog Programs as a Higher-order DBSP Program

Bruno Rucy Carneiro Alves de Lima, Merlin Kramer, Kalmer Apinis, Kristopher Micinski

Research output: Contribution to journalConference Articlepeer-review

Abstract

We show that evaluating positive Datalog programs in a bottom-up manner can be modelled as a "circuit" of facts and rules where both can be freely added and retracted during runtime. This is realised by writing a definitional interpreter as a higher order program that defines bottom-up evaluation in terms of Database Stream Processing Theory (DBSP) operators that have incremental semantics. Our approach is compared against Soufflé, and DDLog. Up to almost 10 times faster performance is exhibited when handling incremental updates compared to DDLog, and 2 times when compared to Soufflé.

Original languageEnglish (US)
Pages (from-to)2-16
Number of pages15
JournalCEUR Workshop Proceedings
Volume3801
StatePublished - 2024
Event5th International Workshop on the Resurgence of Datalog in Academia and Industry, Datalog-2.0 2024 - Dallas, United States
Duration: Oct 11 2024 → …

Keywords

  • Bottom-up Evaluation
  • Datalog
  • DBSP
  • Incremental View Maintenance

ASJC Scopus subject areas

  • General Computer Science

Fingerprint

Dive into the research topics of 'Incremental Evaluation of Dynamic Datalog Programs as a Higher-order DBSP Program'. Together they form a unique fingerprint.

Cite this