Optimised Maintenance of Datalog Materialisations
Pan Hu, Boris Motik, Ian Horrocks

TL;DR
This paper introduces hybrid algorithms combining existing datalog maintenance methods to significantly improve update efficiency by reducing backward rule evaluation, demonstrated through empirical performance gains.
Contribution
The paper proposes two hybrid algorithms that integrate DRed, B/F, and Counting to optimize datalog materialisation updates, handling arbitrary programs more efficiently.
Findings
Hybrid algorithms outperform existing methods in speed.
Significant reduction in backward rule evaluation overhead.
Order-of-magnitude performance improvements observed.
Abstract
To efficiently answer queries, datalog systems often materialise all consequences of a datalog program, so the materialisation must be updated whenever the input facts change. Several solutions to the materialisation update problem have been proposed. The Delete/Rederive (DRed) and the Backward/Forward (B/F) algorithms solve this problem for general datalog, but both contain steps that evaluate rules 'backwards' by matching their heads to a fact and evaluating the partially instantiated rule bodies as queries. We show that this can be a considerable source of overhead even on very small updates. In contrast, the Counting algorithm does not evaluate the rules 'backwards', but it can handle only nonrecursive rules. We present two hybrid approaches that combine DRed and B/F with Counting so as to reduce or even eliminate 'backward' rule evaluation while still handling arbitrary datalog…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Database Systems and Queries · Logic, Reasoning, and Knowledge · Software Testing and Debugging Techniques
