1993 · 658 citations · 18 references
ComputingComputer ScienceInformation SystemsAlgorithmsDatabasesSet TheoryDeductive ReasoningQuery ProcessingRecursion TheoryRelational AlgebraRelational Data ModelStructured Query LanguageDeductive DatabasesIncremental View MaintenanceMaterialized View MaintenanceMaterialized ViewsRecursionView DefinitionView UpdatingViews
We present incremental evaluation algorithms to compute changes to materialized views in relational and deductive database systems, in response to changes (insertions, deletions, and updates) to the relations. The view definitions can be in SQL or Datalog, and may use UNION, negation, aggregation (e.g. SUM, MIN), linear recursion, and general recursion.We first present a counting algorithm that tracks the number of alternative derivations (counts) for each derived tuple in a view. The algorithm works with both set and duplicate semantics. We present the algorithm for nonrecursive views (with negation and aggregation), and show that the count for a tuple can be computed at little or no cost above the cost of deriving the tuple. The algorithm is optimal in that it computes exactly those view tuples that are inserted or deleted. Note that we store only the number of derivations, not the derivations themselves.We then present the Delete and Rederive algorithm, DRed, for incremental maintenance of recursive views (negation and aggregation are permitted). The algorithm works by first deleting a superset of the tuples that need to be deleted, and then rederiving some of them. The algorithm can also be used when the view definition is itself altered.
18
Efficiently updating materialized views
José A. Blakeley, Per-Åke Larson, Frank Wm. Tompa · ACM SIGMOD Record · 1986 · 427 citations · Full text
Efficiently updating materialized views
José A. Blakeley, Per-Åke Larson, Frank Wm. Tompa · 1986 · 254 citations
Alert: An Architecture for Transforming a Passive DBMS into an Active DBMS
Ulf Schreier, Hamid Pirahesh, Rakesh Agrawal et al. · Very Large Data Bases · 1991 · 117 citations