Rewrite of queries containing rank or rownumber or Min/Max aggregate functions using a materialized view
Abstract
Techniques are provided for improving efficiency of database systems, and in particular, to refreshing materialized views maintained by database systems and rewriting queries to access the materialized views. According to the approaches, a ranked materialized view is incrementally refreshed, and during the incremental refresh operation, rows in the partitions of the materialized view are ranked within the partitions.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 14.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of rewriting queries, the method comprising: a database computer system performing the steps of: receiving a query that requests N top ranking rows from groups of rows in a base table, wherein said ranking is based on a particular ranking criteria; query to reference a materialized view; wherein said criteria for rewriting the query includes that: a) the materialized view ranks rows based on said particular ranking criteria; and b) N is less than or equal to a minimum threshold number associated with the materialized view; wherein said materialized view is incrementally refreshed in a
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (14 of 14 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- "Oracle 9i Materialized Views" An Oracle White Paper (May 2001) 23 pages.
- 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.
- Bhagrava, Gautam et al., "Efficient processing of outer joins and aggregate junctions", Proceedings of the Twelfth International Conference Data Engineering, Feb. 26-Mar. 1, 1996, pp. 441-449.
- Bhargava, Gautam et al., "Hypergraph based reorderings of outer join queries with complex predicates", Proceedings of the 1995 ACM SIGMOND International Conference on Management of Data and Symposium on Principles of Database Systems, May 22-25, 1995, pp. 304-315.