Materialized view maintenance and integrity constraint checking

Ross, Kenneth A. ; Srivastava, Divesh ; Sudarshan, S. (1996) Materialized view maintenance and integrity constraint checking 1996 ACM SIGMOD international conference on Management of data . pp. 447-458.

[img] PDF
1MB

Official URL: http://doi.org/10.1145/233269.233361

Related URL: http://dx.doi.org/10.1145/233269.233361

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.

Item Type:Article
Source:Copyright of this article belongs to Association for Computing Machinery
ID Code:128537
Deposited On:27 Oct 2022 05:41
Last Modified:27 Oct 2022 05:41

Repository Staff Only: item control page