Fattebert, C., Jiang, Z., Koch, C., Pichler, R., & Wang, Q. (2026). Size Bound-Adorned Datalog. Proceedings of the ACM on Management of Data (PACMMOD), 4(2), 1–27. https://doi.org/10.1145/3801893
E192-02 - Forschungsbereich Databases and Artificial Intelligence
-
Journal:
Proceedings of the ACM on Management of Data (PACMMOD)
-
Date (published):
2026
-
Number of Pages:
27
-
Publisher:
ACM
-
Peer reviewed:
Yes
-
Keywords:
Datalog; Cost-based query optimization; Result size estimation
en
Abstract:
We introduce EDB-bounded datalog, a framework for deriving upper bounds on intermediate result sizes and the asymptotic complexity of recursive queries in datalog. We present an algorithm that, given an arbitrary datalog program, constructs an EDB-bounded datalog program in which every rule is adorned with a (non-recursive) conjunctive query that subsumes the result of the rule, thus acting as an upper bound. From such adornments, we define a notion of width based on (integral or fractional) edge-cover widths. Through the adornments and the width measure, we obtain, for every IDB predicate, worst-case upper bounds on their sizes, which are polynomial in the input data size, given a fixed program structure. Furthermore, with these size bounds, we also derive fixed-parameter tractable, output-sensitive asymptotic complexity bounds for evaluating the entire program. Additionally, by adapting our framework, we obtain a semi-decision procedure for datalog boundedness that efficiently rewrites most practical bounded programs into non-recursive equivalent programs.
en
Project title:
Decompose and Conquer: Fast Query Processing via Decomposition: ICT22-011 (WWTF Wiener Wissenschafts-, Forschu und Technologiefonds)