skip to main content
10.1145/1807085.1807100acmconferencesArticle/Chapter ViewAbstractPublication PagespodsConference Proceedingsconference-collections
research-article

Incremental query evaluation in a ring of databases

Published:06 June 2010Publication History

ABSTRACT

This paper approaches the incremental view maintenance problem from an algebraic perspective. We construct the algebraic structure of a ring of databases and use it as the foundation of the design of a query calculus that allows to express powerful aggregate queries. The query calculus inherits key properties of the ring, such as having a normal form of polynomials and being closed under computing inverses and delta queries. The k-th delta of a polynomial query of degree k without nesting is purely a function of the update, not of the database. This gives rise to a method of eliminating expensive query operators such as joins from programs that perform incremental view maintenance. The main result is that, for non-nested queries, each individual aggregate value can be incrementally maintained using a constant amount of work. This is not possible for nonincremental evaluation.

References

  1. S. Abiteboul, R. Hull, and V. Vianu. Foundations of Databases. Addison-Wesley, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. U. A. Acar, G. E. Blelloch, and R. Harper. Adaptive functional programming. ACM Trans. Program. Lang. Syst., 28(6):990--1034, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Y. Ahmad and C. Koch. DBToaster: A SQL compiler for high-performance delta processing in main-memory databases. PVLDB, 2(2):1566--1569, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. D. A. M. Barrington, N. Immerman, and H. Straubing. On uniformity within NC1. J. Comput. Syst. Sci., 41(3):274--306, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. J. A. Blakeley, P.-Å. Larson, and F. W. Tompa. Efficiently updating materialized views. In Proc. SIGMOD Conference, pages 61--71, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. R. P. Brent. The parallel evaluation of general arithmetic expressions. J. ACM, 21:201--206, 1974. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. P. Buneman and E. K. Clemons. Efficient monitoring relational databases. ACM Trans. Database Syst., 4(3):368--382, 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. S. Ceri and J. Widom. Deriving production rules for incremental view maintenance. In Proc. VLDB, pages 577--589, 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. L. S. Colby, T. Griffin, L. Libkin, I. S. Mumick, and H. Trickey. Algorithms for deferred view maintenance. In Proc. SIGMOD, pages 469--480, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. A. J. Demers, T. W. Reps, and T. Teitelbaum. Incremental evaluation for attribute grammars with application to syntax-directed editors. In Proc. POPL, pages 105--116, 1981. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. G. Dong and J. Su. Incremental and decremental evaluation of transitive closure by first-order queries. Inf. Comput., 120(1):101--106, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. D. S. Dummit and R. M. Foote. Abstract Algebra. John Wiley & Sons, 3rd edition, 2004.Google ScholarGoogle Scholar
  13. S. Ghandeharizadeh, R. Hull, and D. Jacobs. Heraclitus: Elevating deltas to be first-class citizens in a database programming language. ACM Transactions on Database Systems, 21(3):370--426, Sept. 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. T. J. Green, Z. Ives, and V. Tannen. Reconcilable differences. In Proc. ICDT, St. Petersburg, Russia, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. T. J. Green, G. Karvounarakis, and V. Tannen. Provenance semirings. In Proc. PODS, pages 31--40, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. T. Griffin and L. Libkin. Incremental maintenance of views with duplicates. In Proc. SIGMOD, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. A. Gupta, D. Katiyar, and I. S. Mumick. Counting solutions to the view maintenance problem. In Proc. Workshop on Deductive Databases, JICSLP, 1992.Google ScholarGoogle Scholar
  18. A. Gupta, I. S. Mumick, and V. S. Subrahmanian. Maintaining views incrementally. In Proc. SIGMOD Conference, pages 157--166, 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. L. Henkin, J. Monk, and A. Tarski. Cylindric Algebras, Part I. North-Holland, 1971.Google ScholarGoogle Scholar
  20. W. Hesse. The dynamic complexity of transitive closure is in DynTC0. Theor. Comput. Sci., 296(3):473--485, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. W. Hesse and N. Immerman. Complete problems for dynamic complexity classes. In Proc. LICS, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. D. S. Johnson. A catalog of complexity classes. In J. van Leeuwen, editor, Handbook of Theoretical Computer Science, volume 1, chapter 2, pages 67--161. Elsevier Science Publishers B.V., 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. Y. Kotidis and N. Roussopoulos. A case for dynamic view management. ACM Transactions on Database Systems, 26(4):388--423, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. S. Lang. Algebra. Graduate Texts in Mathematics. Springer-Verlag, revised 3rd edition, 2002.Google ScholarGoogle Scholar
  25. L. Libkin and L. Wong. Some properties of query languages for bags. In Proc. DBPL, pages 97--114, 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. L. Libkin and L. Wong. Incremental recomputation of recursive queries with nested sets and aggregate functions. In Proc. DBPL, pages 222--238, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. L. Libkin and L. Wong. On the power of incremental evaluation in SQL-like languages. In Proc. DBPL, pages 17--30, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  28. P. B. Miltersen, S. Subramanian, J. S. Vitter, and R. Tamassia. Complexity models for incremental computation. Theor. Comput. Sci., 130(1):203--236, 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. S. Patnaik and N. Immerman. Dyn-FO: A parallel, dynamic complexity class. J. Comput. Syst. Sci., 55(2):199--209, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  30. W. Pugh and T. Teitelbaum. Incremental computation via function caching. In Proc. POPL, 1989. Google ScholarGoogle ScholarDigital LibraryDigital Library
  31. A. Rajaraman, Y. Sagiv, and J. D. Ullman. Answering queries using templates with binding patterns. In Proc. PODS, pages 105--112, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  32. N. Roussopoulos. An incremental access method for viewcache: Concept, algorithms, and cost analysis. ACM Transactions on Database Systems, 16(3):535--563, 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  33. O. Shmueli and A. Itai. Maintenance of views. In B. Yormark, editor, Proc. SIGMOD, pages 240--255. ACM Press, 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  34. R. Smolenski. Algebraic methods in the theory of lower bounds for boolean circuit complexity. In Proc. STOC, pages 77--82, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  35. M. Y. Vardi. The complexity of relational query languages. In Proc. STOC, pages 137--146, May 1982. Google ScholarGoogle ScholarDigital LibraryDigital Library
  36. W. P. Yan and P.-Å. Larson. Eager aggregation and lazy aggregation. In Proc. VLDB, pages 345--357, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Incremental query evaluation in a ring of databases

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Conferences
        PODS '10: Proceedings of the twenty-ninth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems
        June 2010
        350 pages
        ISBN:9781450300339
        DOI:10.1145/1807085

        Copyright © 2010 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 6 June 2010

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article

        Acceptance Rates

        PODS '10 Paper Acceptance Rate27of113submissions,24%Overall Acceptance Rate642of2,707submissions,24%

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader