Query refresh using multiple processing pipelines
Abstract
A system includes at least one hardware processor and at least one memory storing instructions that cause the at least one hardware processor to perform operations. The operations include generating a log of changes posted to a plurality of intermediate materialized tables (MTs) during execution of a query in a network-based database system. The query is associated with a source MT that the intermediate MTs depend on. The operations include rendering the log of changes into a dependency graph. The operations include configuring a plurality of processing pipelines based on the dependency graph. The operations include performing refreshes on one or more of the plurality of intermediate MTs in at least one of the plurality of processing pipelines to complete the refresh operation. The refreshes are performed responsive to detecting an instruction for a refresh operation on the source MT.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 0.
Claims (21 — 3 Independent, 18 Dependent)
- Claim 1Independent Claim
A system comprising: at least one hardware processor; and at least one memory storing instructions that cause the at least one hardware processor to perform operations comprising: generating a source materialized table (MT) based on a table definition, the table definition comprising a query on one or more base tables, and a lag duration value, the lag duration value indicating a maximum time period that a result of a prior refresh of the query can lag behind a current time instance; generating a log of changes posted to a plurality of intermediate MTs during execution of the query in a network-based database system, the query associated with the source MT that the intermediate MTs depend on; rendering the log of changes into a dependency graph; configuring a plurality of processing pipelines based on the dependency graph; and responsive to detecting an instruction for a refresh operation on the source MT, performing refreshes on one or more of the plurality of intermediate MTs in at least one of the plurality of processing pipelines to complete the refresh operation.
- Claim 2Depends on #1
The system of claim 1, wherein the operations comprise: partitioning the dependency graph into a plurality of sub-graphs based on an association of the changes to one or more user accounts of the network-based database system.
- Claim 3Depends on #2
The system of claim 2, wherein the operations comprise: configuring the plurality of processing pipelines to correspond to the plurality of sub-graphs.
- Claim 4Depends on #1
The system of claim 1, wherein the operations comprise: configuring a sub-graph of the plurality of sub-graphs to indicate dependencies among a subset of the plurality of intermediate MTs.
- Claim 5Depends on #4
The system of claim 4, wherein the operations comprise: configuring the subset with at least one composite MT, the at least one composite MT depending on at least two remaining MTs of the subset.
- Claim 6Depends on #1
The system of claim 1, wherein the operations comprise: performing the refreshes on the plurality of intermediate MTs in parallel in the plurality of processing pipelines to complete the refresh operation.
- Claim 7Depends on #1
The system of claim 1, wherein the operations comprise: generating the plurality of intermediate MTs based on a plurality of data processing operations in a query plan of the query.
- Claim 8Independent Claim
A method comprising: generating, by at least one hardware processor, a source materialized table (MT) based on a table definition, the table definition comprising a query on one or more base tables, and a lag duration value, the lag duration value indicating a maximum time period that a result of a prior refresh of the query can lag behind a current time instance; generating, by the at least one hardware processor, a log of changes posted to a plurality of intermediate MTs during execution of the query in a network-based database system, the query associated with the source MT that the intermediate MTs depend on; rendering the log of changes into a dependency graph; configuring a plurality of processing pipelines based on the dependency graph; and responsive to detecting an instruction for a refresh operation on the source MT, performing refreshes on one or more of the plurality of intermediate MTs in at least one of the plurality of processing pipelines to complete the refresh operation.
- Claim 9Depends on #8
The method of claim 8, further comprising: partitioning the dependency graph into a plurality of sub-graphs based on an association of the changes to one or more user accounts of the network-based database system.
- Claim 10Depends on #9
The method of claim 9, further comprising: configuring the plurality of processing pipelines to correspond to the plurality of sub-graphs.
- Claim 11Depends on #9
The method of claim 9, further comprising: configuring a sub-graph of the plurality of sub-graphs to indicate dependencies among a subset of the plurality of intermediate MTs.
- Claim 12Depends on #11
The method of claim 11, further comprising: configuring the subset with at least one composite MT, the at least one composite MT depending on at least two remaining MTs of the subset.
- Claim 13Depends on #8
The method of claim 8, further comprising: performing the refreshes on the plurality of intermediate MTs in parallel in the plurality of processing pipelines to complete the refresh operation.
- Claim 14Depends on #8
The method of claim 8, further comprising: generating the plurality of intermediate MTs based on a plurality of data processing operations in a query plan of the query.
- Claim 15Independent Claim
A computer-storage medium comprising instructions that, when executed by one or more processors of a machine, configure the machine to perform operations comprising: generating a source materialized table (MT) based on a table definition, the table definition comprising a query on one or more base tables, and a lag duration value, the lag duration value indicating a maximum time period that a result of a prior refresh of the query can lag behind a current time instance; generating a log of changes posted to a plurality of intermediate MTs during execution of the query in a network-based database system, the query associated with the source MT that the intermediate MTs depend on; rendering the log of changes into a dependency graph; configuring a plurality of processing pipelines based on the dependency graph; and responsive to detecting an instruction for a refresh operation on the source MT, performing refreshes on one or more of the plurality of intermediate MTs in at least one of the plurality of processing pipelines to complete the refresh operation.
- Claim 16Depends on #15
The computer-storage medium of claim 15, the operations further comprising: partitioning the dependency graph into a plurality of sub-graphs based on an association of the changes to one or more user accounts of the network-based database system.
- Claim 17Depends on #16
The computer-storage medium of claim 16, the operations further comprising: configuring the plurality of processing pipelines to correspond to the plurality of sub-graphs.
- Claim 18Depends on #16
The computer-storage medium of claim 16, the operations further comprising: configuring a sub-graph of the plurality of sub-graphs to indicate dependencies among a subset of the plurality of intermediate MTs.
- Claim 19Depends on #18
The computer-storage medium of claim 18, the operations further comprising: configuring the subset with at least one composite MT, the at least one composite MT depending on at least two remaining MTs of the subset.
- Claim 20Depends on #15
The computer-storage medium of claim 15, the operations further comprising: performing the refreshes on the plurality of intermediate MTs in parallel in the plurality of processing pipelines to complete the refresh operation.
- Claim 21Depends on #15
The computer-storage medium of claim 15, the operations further comprising: generating the plurality of intermediate MTs based on a plurality of data processing operations in a query plan of the query.
Technical Overview & Description
PRIORITY CLAIM This application is a continuation of U.S. patent application Ser. No. 18/362,898, filed Jul. 31, 2023, and entitled “ MATERIALIZED TABLE REFRESH USING MULTIPLE PROCESSING PIPELINES, ” which is a continuation of U.S. patent application Ser. No. 17/931,590, filed Sep. 13, 2022, and entitled “ INCREMENTAL MAINTENANCE OF QUERY RESULTS, ” now issued as U.S. Pat. No. 11,762,855, which claims the benefit of priority to U.S. Provisional Patent Application 63/366,197, filed Jun. 10, 2022, and entitled “ DATABASE OBJECT TYPE FOR INCREMENTAL MAINTENANCE OF QUERY RESULTS, ” all of which are incorporated herein by reference in their entireties. TECHNICAL FIELD Embodiments of the disclosure relate generally to databases and, more specifically, to a database object type (e.g., a materialized table or MT) for incremental maintenance of query results. BACKGROUND Databases are widely used for data storage and access in computing applications. A goal of database storage is to provide enormous sums of information in an organized manner so that it can be accessed, managed, updated, and shared. In a database, data may be organized into rows, columns, and tables. Different database storage systems may be used for storing different types of content, such as bibliographic, full text, numeric, and/or image content. Further, in computing, different database systems may be classified according to the organizational approach of the database. There are many different types of databases, including relational databases, distributed databases, cloud databases, object-oriented and others. Databases are used by various entities and companies for storing information that may need to be accessed or analyzed. In an example, a retail company may store a listing of all sales transactions in a database. The database may include information about when a transaction occurred, where it occurred, a total cost of the transaction, an identifier and/or description of all items that were purchased
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (16)
Non-Patent Literature (10)
- “
- U.S. Appl. No. 17/931,590, Non Final Office Action mailed May 4, 2023
- ”
- , 10 pgs.
- “
- U.S. Appl. No. 17/931,590, Notice of Allowance mailed Jul. 11, 2023
- ”
- , 8 pgs.
- “
- U.S. Appl. No. 17/931,590, Response filed May 31, 2023 to Non Final Office Action mailed May 4, 2023