Partially materialized views
First Claim
1. A method of partially materializing a view of database records, comprising:
- a) defining a view of records in one or more source tables;
b) identifying a subset of records of the view that are to be materialized; and
c) storing the subset of records to partially materialize the view.
2 Assignments
0 Petitions
Accused Products
Abstract
Partially materialized views in the field of database systems are described herein. A method of partially materializing a view computed from one or more source tables comprises generating a view definition including a query expression and at least one control predicate referencing at least one control table. The query expression specifies the maximal content of the view, that is, the complete set of records that could be materialized. One or more control predicates and the contents of one or more control tables restrict what records are actually materialized and stored in the view. This allows the content of the partially materialized view to be adjusted simply by updating one or more control tables.
132 Citations
36 Claims
-
1. A method of partially materializing a view of database records, comprising:
-
a) defining a view of records in one or more source tables;
b) identifying a subset of records of the view that are to be materialized; and
c) storing the subset of records to partially materialize the view. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A data structure, comprising:
a view defining expression including a query expression and at least one control predicate, the query expression referencing one or more source tables, the control predicate referencing one or more control tables, the view defining expression identifying a subset of records in a result of the query expression to be included in a partially materialized view. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23)
-
24. One or more computer-readable media containing executable instructions that, when executed, implement a method comprising:
-
a) storing at least one record to partially materialize a view of a query result based on a view defining expression and at least one source table;
b) receiving a query including a query predicate;
c) determining whether the partially materialized view contains all records required by the query predicate;
d) computing the query from the partially materialized view if the partially materialized view contains all records required by the query predicate. - View Dependent Claims (25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35)
-
-
36. One or more computer-readable media containing executable components comprising:
-
a) means for storing a partially materialized view, a control table, and one or more source tables;
b) means for receiving a query;
c) means for compiling the query including means for determining whether the partially materialized view would contain all records required by the query if fully materialized, means for creating a guard predicate, and means for creating a dynamic query plan including the guard predicate; and
d) means for executing the query based on the dynamic query plan and an evaluation of the guard predicate at execution time of the query.
-
Specification