skip to main content
article
Free access

Materialized view maintenance and integrity constraint checking: trading space for time

Published: 01 June 1996 Publication History

Abstract

We investigate the problem of incremental maintenance of an SQL view in the face of database updates, and show that it is possible to reduce the total time cost of view maintenance by materializing (and maintaining) additional views. We formulate the problem of determining the optimal set of additional views to materialize as an optimization problem over the space of possible view sets (which includes the empty set). The optimization problem is harder than query optimization since it has to deal with multiple view sets, updates of multiple relations, and multiple ways of maintaining each view set for each updated relation.We develop a memoing solution for the problem; the solution can be implemented using the expression DAG representation used in rule-based optimizers such as Volcano. We demonstrate that global optimization cannot, in general, be achieved by locally optimizing each materialized subview, because common subexpressions between different materialized subviews can allow nonoptimal local plans to be combined into an optimal global plan. We identify conditions on materialized subviews in the expression DAG when local optimization is possible. Finally, we suggest heuristics that can be used to efficiently determine a useful set of additional views to materialize.Our results are particularly important for the efficient checking of assertions (complex integrity constraints) in the SQL-92 standard, since the incremental checking of such integrity constraints is known to be essentially equivalent to the view maintenance problem.

References

[1]
C. Beeri and R. Ramakrishnan. On the power of Magic. Journal of Logic Programming, 10(3&4):255-300, 1991.
[2]
J. A. Blakeley, P.-A. Larson, and F. W. Tompa. Efficiently updating materialized views. In Proceedings of the ACM SIGMOD Conference on Management of Data, pages 61-71, Washington D.C., May 1986.
[3]
B. Blaustein. Enforcing database assertzons: Technzques and applications. PhD thesis, Harvard University, 1981.
[4]
S. Ceri and J. Widom. Production rules for incremental view maintenance. In Proceedzngs of the International Conference on Very Large Databases, Barcelona, Spain, 1991.
[5]
S. Chaudhuri, R. Krishnamurthy, S. Potamianos, and K. Shim. Optimizing queries with materialized views. In Proceedings of the IEEE International Conference on Data Engineering, 1995.
[6]
F. Fabret, M. Regnier, and E. Simon. An adaptive algorithm for incremental evaluation of production rules in databases. In Proceedzngs of the International CQnfvrcr~ or~ Wry Large Outaba~c~, Aug. 1908.
[7]
G. Graefe and W. J. McKenna. The Volcano optimizer generator: Extensibility and efficient search. In Proceedings of the IEEE International Conference on Data Engineering, Vienna, Austria, 1993.
[8]
T . Griffin and L. Libkin. Incremental maintenance of views with duplicates. In Proceedings of the ACM SIGMOD Conference on Management of Data, 1995.
[9]
A. Gupta, V. Harinarayan, and D. Quass. Aggregatequery processing in data warehousing environments. In Proceedings of the Internatzonal Conference on Very Large Databases, 1995.
[10]
A. Gupta and I. S. Mumick. Maintenance of materialized views' Problems, techniques and applications. IEEE Data Engineering Bulletin, 18(2), June 1995. Special Issue on Materialized Views and Data Warehousing.
[11]
A. Gupta, I. S. Mumick, and K. Ross. Adapting materialized views after redefinitions, in Proceedings of the ACM SIGMOD Conference on Management of Data, San Jose, CA, May 1995.
[12]
A. Gupta, I. S. Mumick, and V. S. Subrahmanian. Maintaining views incrementally. In Proceedings of the A CM SIGMOD Conference on Management of Data, pages 157-166, 1993.
[13]
E. Hanson. Rule condition testing and action execution in Ariel. In Proceedings of the A CM SIGMOD Conference on Management of Data, June 1992.
[14]
A. Y. Levy, A. O. Mendelzon, Y. Sagiv, and D. Srivastava. Answering queries using views. In Proceedings of the A CM Symposium on Principles of Database Systems, San Jose, CA, May 1995.
[15]
W. J. McKenna. Efficient search in extensible database query optimization: The Volcano optimizer generator. PhD thesis, University of Colorado, 1993.
[16]
J. Melton and A. R. Simon. Understanding the new SQL: A complete guide. Morgan Kaufmann, San Francisco, CA, 1993.
[17]
R. Paige. Applications of finite differencing to database integrity control and query/transaction optimization. In Advances in Database Theory. Plenum, 1984.
[18]
X. Qian and G. Wiederhold. incremental recomputation of active relational expressions. IEEE Transac. tzons on Knowledge and Data Engineering, 3(3):337- 341, 1991.
[19]
A. Segev and W. Fang. Currency-based updates to distributed materialized views. In Proceedings of the IEEE International Conference on Data Engineering, pages 512-520, 1990.
[20]
A. Segev and J. Park. Updating distributed materialized views. IEEE Transactions on Knowledge and Data Engineering, 1(2):173-184, June 1989.
[21]
T. Sellis. Multiple query optimization. A CM Transactzons on Database Systems, 13(1):23-52, Mar. 1988.
[22]
L. Vieille, P. Bayer, and V. K iichenhoff. Integrity checking and materialized views handling by update propagation in the EKS-V1 system. Technical report, CEKMIC5- Ecole N~tionale Des Fonts et Chaussees, France, June 1991. Rapport de Recherche, CERMICS 91.1.
[23]
Y.-W. Wang and E. Hanson. A performance comparison of the Rete and TREAT algorithms for testing database rule conditions. In Proceedings of the IEEE International Conlerence on Data Engzneering, 1992.
[24]
W. P. Yan and P.-A. Larson. Performing group-by before join. In Proceedings o} the IEEE International Conference on Data Engineering, pages 89-100, 1994.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM SIGMOD Record
ACM SIGMOD Record  Volume 25, Issue 2
June 1996
557 pages
ISSN:0163-5808
DOI:10.1145/235968
Issue’s Table of Contents
  • cover image ACM Conferences
    SIGMOD '96: Proceedings of the 1996 ACM SIGMOD international conference on Management of data
    June 1996
    560 pages
    ISBN:0897917944
    DOI:10.1145/233269
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: 01 June 1996
Published in SIGMOD Volume 25, Issue 2

Check for updates

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)120
  • Downloads (Last 6 weeks)33
Reflects downloads up to 14 Sep 2024

Other Metrics

Citations

Cited By

View all

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media