Cost-based query rewrite using materialized views
Abstract
A system and method of rewriting a database query where the query contains an aggregate includes the following. If one or more aggregate materialized views are considered, rewriting the query using an aggregate materialized view. If one or more non-aggregate multi-table materialized views are considered, the query is rewritten using a multi-table materialized view. A join cost is determined for each such non-aggregate multi-table materialized view. If one or more non-aggregate single table materialized views are considered, the query is rewritten using the single table materialized view. A join cost is determined for each such non-aggregate single table materialized view. Finally, a current total cost is determined for use of various materialized views as a function of join cost, aggregation cost and spool cost to select a rewritten query.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 10.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of rewriting a database query where the query contains an aggregate, the method comprising: if one or more aggregate materialized views are considered, rewriting the query using an aggregate materialized view; if one or more non-aggregate multi-table materialized views are considered, rewriting the query using a multi-table materialized view and determining a join cost for each such non-aggregate multi-table materialized view; if one or more non-aggregate single table materialized views are considered, rewriting the query using the single table materialized view and determining a join
- Claim 2Depends on #1
The method of claim 1 and fu
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗