Using join dependencies for refresh
Abstract
In an embodiment, Partition Change Tracking (PCT) refresh is performed by using join dependencies on partitioning columns to derive and fill in identifiers of rows and/or partitions containing the rows in the refresh expressions. In an embodiment, the join dependencies that form the Materialized View's (MV's) query definition and the partitioning predicate of the table are used to automatically generate a statement which is run in order to derive and fill in identifiers of the rows and/or partitions that are being changed. The identifiers are then plugged into the refresh expression, and the refresh expression is run. Running the refresh expression causes the rows identified to be refreshed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 44 · Forward citations: 4.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A machine-implemented method, comprising: evaluating a definition of a materialized view based on a base table, wherein the base table is partitioned into a plurality of partitions based on a partition key; wherein the step of evaluating includes determining that the definition is based on a join dependency of the partition key of said base table; and based on the evaluating, generating a refresh expression that includes a restriction based on said partition key; wherein the steps of evaluating and generating are performed by a computing device.
- Claim 2Depends on #1
The method of claim 1 , wherein: the restriction is based on a predicate expression that identifies a subset of said plurality of partitions; and the refresh expression specifies a delete of operation of rows in the materialized view that correspond to the subset of s
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (44)
Non-Patent Literature (5)
- "Oracle 9i Materialized Views" An Orace White Paper (May 2001).
- Al-Anzi, Fawas S. et al., "Modeling behavior, a Step Towards Defining Functionally Correct Views of Complex Objects in Concurrent Engineering", CIKM '94. Gaitherburg MD, USA, 1994 ACM 089791-674-3, pp. 1-9.
- Bello, Randall G., et al., "Materialized Views in Oracle", VLDB 1998, Proceedings of 24th International Conference on Very Large Databases, Aug. 24-27, 1998, pp. 659-664.
- Faiza Najjar, et al., "Cardinality estimation of distributed join queries," Sep. 1-3, 1999; Database and Expert Systems Applications, 1999, Proceedings, Tenth International Workshop on, pp. 66-70.
- Gianluca Moro, et al., "Incremental maintenance of multi-source views," Database Conference, 2001, ADC 2001, Proceedings, 12th Australasian, Jan. 2001, pp. 13-20.