Skip to main content

Maintaining constrained transitive closure by conjunctive queries

  • Materials View Maintenance
  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1341))

Abstract

Recently there has been considerable effort on the maintenance of database views in general, and of deductive database views in particular. Such work considered the incremental maintenance of deductive views defined by expensive database queries, including the transitive closure query. An interesting approach is to use only first-order queries in this maintenance, after small changes (e.g. one tuple insertions and deletions) to base relations. In this paper we consider such incremental maintenance of views defined by constrained transitive closure queries, for the insertion case. The constraints may refer to node costs such as height, voltage and temperature at spatial locations of interest, and to edge costs such as distances between spatial locations. When the constraints are based on node costs, we divide the maintenance problem into several cases, depending on the nature of the constraints. For some cases, the constrained transitive closure becomes bounded in the sense that the recursion can be removed and thus the maintenance problem becomes trivial. For the other cases we provide complete solutions for maintaining the constrained transitive closure. The size of the auxiliary relations can be kept bounded by the size of the transitive closure of the graphs. We also illustrate how to maintain the constrained transitive closure in the presence of other kinds of constraints. However, whether such views can be maintained in first-order after the deletion of edges is a major open problem, even for the constraint-free transitive closure of directed graphs.

This is a preview of subscription content, log in via an institution.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Rakesh Agrawal. Alpha: An extension of relational algebra to express a class of recursive queires. In Proc. IEEE 3rd International Conference on Data Engineering, pages 580–590, 1987.

    Google Scholar 

  2. A. V. Aho, J. E. Hopcroft, and J. D. Ullman. The Design and Analysis of Computer Algorithms. Addison-Wesley Publishing Company, 1974.

    Google Scholar 

  3. S. Abiteboul, R. Hull, and V. Vianu. Foundations of Databases. Addison-Wesley, 1995.

    Google Scholar 

  4. K. R. Apt and J.-M. Pugin. Maintenance of stratified databases viewed as a belief revision system. In Proc. Sixth ACM Symp. on Principles of Database Systems, pages 136–145, San Diego, Ca., 1987.

    Google Scholar 

  5. I.F. Cruz and T.S. Norvell. Aggregative transitive closure: An extension of transitive closure. In Proc. IEEE 5th International Conference on Data Engineering, pages 384–393, 1989.

    Google Scholar 

  6. Shaul Dar and Rakesh Agrawal. Extending sql with generalized transitive closure. IEEE Transactions on Knowledge and Data Engineering, 5(5):799–812, October 1993.

    Article  Google Scholar 

  7. G. Dong, L. Libkin, and L. Wong. On impossibility of decremental recomputation of recursive queries in relational calculus and SQL. In Paolo Atzeni and Val Tannen, editors, Proceedings of the Fifth International Workshop on Database Programming Languages — http://www.springer.co.uk/eWiC/Workshops/DBPL5.html, pages 1–15, 1995.

    Google Scholar 

  8. G. Dong and C. Pang. Maintaining transitive closure in first-order after node-set and edge-set deletions. Information Processing Letters, 62(3):193–199, 1997.

    Article  Google Scholar 

  9. G. Dong and J. Su. First-order incremental evaluation of datalog queries. In Proc. of 4th International Workshop on Database Programming Languages, C. Beeri, A. Ohori and D. Shasha (Eds), pages 295–308. Workshop in Computing Series, Springer-Verlag, 1993.

    Google Scholar 

  10. G. Dong and J. Su. Incremental and decremental evaluation of transitive closure by first-order queries. Information and Computation, 120(1):101–106, July 1995.

    Article  Google Scholar 

  11. G. Dong and J. Su. Space bounded FOIES. In Proc. of the ACM Symposium on Principles of Database Systems, pages 139–150, May 1995.

    Google Scholar 

  12. G. Dong and J. Su. Arity Bounds in First-Order Incremental Evaluation and Definition of Polynomial Time database Queries. Journal of Computer and System Sciences, to appear. Special issue for PODS 95.

    Google Scholar 

  13. G. Dong, J. Su, and R. Topor. Nonrecursive incremental evaluation of datalog queries. Annals of Mathematics and Artificial Intelligence, 14(2–4):187–223, 1995. Festschrift in honor of Jack Minker.

    Article  Google Scholar 

  14. G. Dong and R. Topor. Incremental evaluation of datalog queries. In Proc. Int'l Conference on Database Theory, pages 282–296, Berlin, Germany, October 1992.

    Google Scholar 

  15. T. Griffin and L. Libkin. Incremental maintenance of views with duplicates. In Proc. ACM SIGMOD Int. Conf. on Management of Data, 1995.

    Google Scholar 

  16. A. Gupta, I. S. Mumick, and V. S. Subrahmanian. Maintaining views incrementally. In Proc. ACM SIGMOD Int. Conf. on Management of Data, pages 157–166, 1993.

    Google Scholar 

  17. J. V. Harrison and S. W. Dietrich. Maintenance of materialized views in a deductive database: An update propagation approach. In K. Ramamohanarao, J. Harland, and G. Dong, editors, Proceedings of the JICSLP Workshop on Deductive Databases, pages 56–65, November 1992.

    Google Scholar 

  18. V. Kuchenhoff. On the efficient computation of the difference between consecutive database states. In C. Delobel, M. Kifer, and Y. Masunaga, editors, Proc. Second Int. Conf. on Deductive Object-Oriented Databases, volume 566 of Lecture Notes in Computer Science, Springer-Verlag, pages 478–502. Springer-Verlag, 1991.

    Google Scholar 

  19. P. B. Miltersen, S. Subramanian, J. S. Vitter, and R. Tamassia. Complexity models for incremental computation. Theoretical Computer Science, 130(1):203–36, August 1994.

    Article  Google Scholar 

  20. S. Patnaik and N. Immerman. Dyn-FO: A parallel dynamic complexity class. In Proc. ACM Symp. on Principles of Database Systems, pages 210–221, 1994.

    Google Scholar 

  21. Xiaolei Qian and Gio Wiederhold. Incremental recomputation of active relational expressions. IEEE Rans. on Knowledge and Data Engineering, 3(3):337–341, 1991.

    Article  Google Scholar 

  22. R. Ramakrishnan, K. A. Ross, D. Srivastava, and S. Sudarshan. Efficient incremental evaluation of queries with aggregation. In Int. Logic Programming Symp., 1994.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

François Bry Raghu Ramakrishnan Kotagiri Ramamohanarao

Rights and permissions

Reprints and permissions

Copyright information

© 1997 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Dong, G., Ramamohanarao, K. (1997). Maintaining constrained transitive closure by conjunctive queries. In: Bry, F., Ramakrishnan, R., Ramamohanarao, K. (eds) Deductive and Object-Oriented Databases. DOOD 1997. Lecture Notes in Computer Science, vol 1341. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-63792-3_7

Download citation

  • DOI: https://doi.org/10.1007/3-540-63792-3_7

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-63792-9

  • Online ISBN: 978-3-540-69647-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics