Abstract

This paper considers the problem of detecting independence of a queries expressed by datalog programs from updates. We provide new insight into the independence problem by reducing it to the equivalence problem for datalog programs (both for the case of insertion and deletion updates). Equivalence, as well as independence, is undecidable in general. However, algorithms for detecting subclasses of equivalence provide sufficient (and sometimes also necessary) conditions for independence. We consider two such subclasses. The first, query-reachability, generalizes previous work on independence [BCL89, E190], which dealt with nonrecursive programs with a single occurrence of the updated predicate. Using recent results on queryreachability [LS92, LMSS93], we generalize these earlier independence tests to arbitrary recursive datalog queries with dense-order constraints and negated EDB subgoals. The second subclass is uniform equivalence (introduced in [S&S]). We extend the results of [SaSSI to datalog programs that include dense-order constraints and stratified negation. Based on these extensions, we present new cases in which independence is decidable and give algorithms that are sound for the general case. Aside for their use in detecting independence, the algorithms for detecting uniform equivalence are also important for optimizing datalog programs. *The work of this author was.supported by NASA Grant NCC2-537. tPart of the work of this author was done while visiting Stanford University, where it was supported by AR0 grant DAAL03-91-G-0177, NSF grants IRI-90-16358 and IRI-9116646, and a grant of Mitsubishi Corp. Permission to copy without fee all or part oJ this material is granted provided that the copies are not made or distributed for direct commercial advantage, the VLDB copyright notice and the title of the publication and its date appear, and notice 1s given that copying is by permission of the Very Large Data Base Endowment. To copy otherwise, OP to republish, requires a fee and/or special permission from the Endowment. Proceedings of the 19th VLDB Conference, Dublin, Ireland, 1993. Yehoshua Sagivt Department of Computer Science Hebrew University Jerusalem, Israel sagiv@cs.huji.ac.il

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.