NONRECURSIVE INCREMENTAL EVALUATION OF DATALOG QUERIES

Citation
Gz. Dong et al., NONRECURSIVE INCREMENTAL EVALUATION OF DATALOG QUERIES, Annals of mathematics and artificial intelligence, 14(2-4), 1995, pp. 187-223
Citations number
34
Categorie Soggetti
Computer Sciences",Mathematics,Mathematics,"Computer Science Artificial Intelligence
ISSN journal
10122443
Volume
14
Issue
2-4
Year of publication
1995
Pages
187 - 223
Database
ISI
SICI code
1012-2443(1995)14:2-4<187:NIEODQ>2.0.ZU;2-H
Abstract
We consider the problem of repeatedly evaluating the same (computation ally expensive) query to a database that is being updated between succ essive query requests. In this situation, it should be possible to use the difference between successive database states and the answer to t he query in one state to reduce the cost of evaluating the query in th e next state. We use nonrecursive Datalog (which are unions of conjunc tive queries) to compute the differences, and call this process ''incr emental query evaluation using conjunctive queries''. After formalizin g 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 Datalo g program to compute the difference between the answer after an update and the answer before the update. We then extend this result to weakl y regular queries, which are regular chain programs augmented with con junctive queries having the so-called Cartesian-closed increment prope rty, and to the case of unbounded-set insertions where the sets are bi nary Cartesian products. Finally, we show that the class of conjunctiv e queries with the Cartesian-closed increment property is decidable.