Immediate maintenance of materialized views
First Claim
Patent Images
1. A method for immediately updating a materialized view in a relational database management system, comprising:
- creating a materialized view defined over a base table;
executing an update, insert, or delete statement on the base table;
computing a delta of the base table by comparing images of the base table before execution of the statement and after execution of the statement, and providing row annotations denoting whether corresponding rows of the delta of the base table originated in the image of the base table before execution of the statement, or in the image of the base table after execution of the statement;
computing a delta of the materialized view based on the delta of the base table, comprising computing aggregations of the row annotations to identify row deletions or insertions; and
updating the materialized view using the delta of the materialized view.
1 Assignment
0 Petitions
Accused Products
Abstract
A system, method, and computer program product are provided for immediately updating a materialized view in a relational database management system. The method includes the steps of creating a materialized view defined over a base table, executing an update statement on the base table, computing a delta of the base table by comparing images of the base table before execution of the update statement and after execution of the update statement, computing a delta of the materialized view based on the delta of the base table, and updating the materialized view using the delta of the materialized view.
-
Citations
18 Claims
-
1. A method for immediately updating a materialized view in a relational database management system, comprising:
-
creating a materialized view defined over a base table; executing an update, insert, or delete statement on the base table; computing a delta of the base table by comparing images of the base table before execution of the statement and after execution of the statement, and providing row annotations denoting whether corresponding rows of the delta of the base table originated in the image of the base table before execution of the statement, or in the image of the base table after execution of the statement; computing a delta of the materialized view based on the delta of the base table, comprising computing aggregations of the row annotations to identify row deletions or insertions; and updating the materialized view using the delta of the materialized view. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A system for immediately updating a materialized view in a relational database management system, comprising:
-
a memory configured to store modules comprising; a first creating module for creating a materialized view defined over a base table, an executing module for executing an update, insert, or delete statement on the base table, a first computing module for computing a delta of the base table by comparing images of the base table before execution of the statement and after execution of the statement, and providing row annotations denoting whether corresponding rows of the delta of the base table originated in the image of the base table before execution of the statement, or in the image of the base table after execution of the statement, a second computing module for computing a delta of the materialized view based on the delta of the base table, comprising computing aggregations of the row annotations to identify row deletions or insertions, and an updating module for updating the materialized view using the delta of the materialized view; and one or more processors configured to process the modules. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer-usable medium having computer program logic recorded thereon for immediately updating a materialized view in a relational database management system, execution of which, by a computing device, causes the computing device to perform operations comprising:
-
creating a materialized view defined over a base table; executing an update, insert, or delete statement on the base table; computing a delta of the base table by comparing images of the base table before execution of the statement and after execution of the statement, and providing row annotations denoting whether corresponding rows of the delta of the base table originated in the image of the base table before execution of the statement, or in the image of the base table after execution of the statement; computing a delta of the materialized view based on the delta of the base table, comprising computing aggregations of the row annotations to identify row deletions or insertions; and updating the materialized view using the delta of the materialized view. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification