Data change tracking and event notification
First Claim
Patent Images
1. A method performed by at least one computing device, the method comprising:
- creating a materialized view table based on one or more physical tables of a database storing a plurality of records;
obtaining first temporal metadata associated with a first network message that was received over a network at a first time;
obtaining second temporal metadata associated with a second network message that was received over the network at a second time that is later than the first time;
identifying an interval during which a subset of the records of the database were altered, the interval being identified by the first temporal metadata and the second temporal metadata; and
performing an update on the materialized view table while limiting the update to the subset of the records that were altered during the interval identified by the first temporal metadata and the second temporal metadata,wherein limiting the update to the subset of the records comprises using the first temporal metadata and the second temporal metadata to obtain a constrained set of primary keys that are used to extract the subset of the records.
2 Assignments
0 Petitions
Accused Products
Abstract
The described implementations relate to updating views in a database system. One implementation can identify an active view that retrieves records from a database and determine one or more physical tables in the database that are referenced by the active view. The implementation can track one or more columns in the physical tables that are used by the active view and identify a change to the physical tables in a transaction log of the database. If the change does not affect the one or more columns, the change can be treated as an ignorable change for the active view.
46 Citations
20 Claims
-
1. A method performed by at least one computing device, the method comprising:
-
creating a materialized view table based on one or more physical tables of a database storing a plurality of records; obtaining first temporal metadata associated with a first network message that was received over a network at a first time; obtaining second temporal metadata associated with a second network message that was received over the network at a second time that is later than the first time; identifying an interval during which a subset of the records of the database were altered, the interval being identified by the first temporal metadata and the second temporal metadata; and performing an update on the materialized view table while limiting the update to the subset of the records that were altered during the interval identified by the first temporal metadata and the second temporal metadata, wherein limiting the update to the subset of the records comprises using the first temporal metadata and the second temporal metadata to obtain a constrained set of primary keys that are used to extract the subset of the records. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. One or more hardware computer-readable storage media comprising computer-readable instructions which, when executed by one or more computing devices, cause the one or more computing devices to perform acts comprising:
-
maintaining a materialized view table using tables of a database, the database storing multiple records having associated primary keys; identifying individual records that have been altered in the tables by messages of a message pipeline during an interval of time, wherein the identifying comprises determining the interval of time using temporal metadata reflecting an order in which at least two of the messages of the message pipeline were communicated over a network; using the temporal metadata reflecting the order in which the at least two of the messages were communicated to constrain which of the primary keys are used for an update of the materialized view table to a constrained set of individual primary keys, wherein the constrained set of individual primary keys correspond to the individual records that have been altered during the interval of time; and performing the update on the materialized view table using the constrained set of individual primary keys. - View Dependent Claims (9, 10, 11, 12, 13, 14, 15)
-
-
16. A system comprising:
-
one or more hardware processors; and one or more computer-readable memory devices or storage devices storing instructions which, when executed by the one or more processors, cause the one or more processors to; access a materialized view table, wherein the materialized view table is created based on one or more physical tables of a database storing multiple records having associated database keys; use temporal metadata associated with network messages of a message pipeline to select individual records that have been altered in the database during a particular interval of time, wherein the individual records are identified in the one or more physical tables by an associated constrained set of database keys that excludes at least some other database keys for other records that were not altered in the database during the particular interval of time; rewrite a view query for the materialized view table using a filter condition that extracts the individual records having the associated constrained set of database keys; and execute the rewritten view query to update the materialized view table such that the materialized view table reflects the individual records that were altered in the database during the particular interval of time. - View Dependent Claims (17, 18, 19, 20)
-
Specification