Document Type
Article
Publication Date
1995
Abstract
We consider the problem of repeatedly evaluating the same (computationally expensive) query to a database that is being updated between successive query requests. In this situation, it should be possible to use the difference between successive database states and the answer to the query in one state to reduce the cost of evaluating the query in the next state. We use nonrecursive Datalog (which are unions of conjunctive queries) to compute the differences, and call this process “incremental query evaluation using conjunctive queries”. After formalizing the notion of incremental query evaluation using conjunctive queries, we give an algorithm that constructs, for each regular chain query (including transitive closure as a special case), a nonrecursive Datalog program to compute the difference between the answer after an update and the answer before the update. We then extend this result to weakly regular queries, which are regular chain programs augmented with conjunctive queries having the so-called Cartesian-closed increment property, and to the case of unbounded-set insertions where the sets are binary Cartesian products. Finally, we show that the class of conjunctive queries with the Cartesian-closed increment property is decidable.
Repository Citation
Dong, G.,
Su, J.,
& Topor, R.
(1995). Nonrecursive Incremental Evaluation of Datalog Queries. Annals of Mathematics and Artificial Intelligence, 14 (2-4), 187-223.
https://corescholar.libraries.wright.edu/knoesis/366
DOI
10.1007/BF01530820
Included in
Bioinformatics Commons, Communication Technology and New Media Commons, Databases and Information Systems Commons, OS and Networks Commons, Science and Technology Studies Commons
Comments
This is the author's manuscript. The final, peer-reviewed version of this article can be found at http://dx.doi.org/10.1007/BF01530820.