Optimizing inequality joins in datalog with approximated constraint propagation

  • Authors:
  • Dario Campagna;Beata Sarna-Starosta;Tom Schrijvers

  • Affiliations:
  • Dept.of Mathematics and Computer Science, University of Perugia, Italy;LogicBlox Inc., Atlanta, Georgia;Dept. of Applied Mathematics and Computer Science, UGent, Belgium

  • Venue:
  • PADL'12 Proceedings of the 14th international conference on Practical Aspects of Declarative Languages
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Datalog systems evaluate joins over arithmetic (in)equalities as a naive generate-and-test of Cartesian products. We exploit aggregates in a source-to-source transformation to reduce the size of Cartesian products and to improve performance. Our approach approximates the well-known propagation technique from Constraint Programming. Experimental evaluation shows good run time speed-ups on a range of non-recursive as well as recursive programs. Furthermore, our technique improves upon the previously reported in the literature constraint magic set transformation approach.