Incremental refresh of materialized views with joins and aggregates after arbitrary DML operations to multiple tables
First Claim
1. A method for refreshing a materialized view after a plurality of operations on a row of a base table of the materialized view, the method comprising the steps of:
- determining an equivalent operation that has the same affect on the row that the plurality of operations have on the row; and
refreshing the materialized view based on the equivalent operation.
2 Assignments
0 Petitions
Accused Products
Abstract
A method is provided for incrementally refreshing a materialized view after multiple operations on a row of a base table of the materialized view, by determining an equivalent operation for the multiple operations and refreshing the materialized view according to the equivalent operation. The method is applicable to a materialized view based on multiple base tables on which multiple operations have been performed. The step of determining the equivalent operation can include identifying rows for which an earliest operation is a DELETE operation, or rows for which a latest operation is an INSERT operation, or a combination of the two. The step of refreshing the materialized view includes performing an inverse operation of the equivalent operation to determine a pre-update state of the row, and refreshing the materialized view based on the pre-update state. Additional embodiments are provided which enhance the performance of materialized view refresh queries.
-
Citations
33 Claims
-
1. A method for refreshing a materialized view after a plurality of operations on a row of a base table of the materialized view, the method comprising the steps of:
-
determining an equivalent operation that has the same affect on the row that the plurality of operations have on the row; and
refreshing the materialized view based on the equivalent operation. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A computer-readable medium carrying one or more sequences of instructions for refreshing a materialized view after a plurality of operations on a row of a base table of the materialized view, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
-
determining an equivalent operation that has the same affect on the row that the plurality of operations have on the row; and
refreshing the materialized view based on the equivalent operation. - View Dependent Claims (21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)
-
-
33. A computer apparatus comprising:
-
a memory; and
one or more processors coupled to the memory and configured to execute one or more sequence of instructions for refreshing a materialized view after a plurality of operations on a row of a base table of the materialized view, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of;
determining an equivalent operation that has the same affect on the row that the plurality of operations have on the row; and
refreshing the materialized view based on the equivalent operation.
-
Specification