Query transformation for union all view join queries using join predicates for pruning and distribution
Abstract
A method, apparatus, and article of manufacture for optimizing a query in a computer system, wherein the query is performed by the computer system to retrieve data from a database stored on the computer system. The optimization includes: (a) combining join predicates from a query with local predicates from each branch of one or more UNION ALL views referenced by the query; (b) analyzing the combined predicates; and (c) not generating the join when the analysis step indicates that the combined predicates lead to an empty result.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 18.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of optimizing a query in a computer system, the query being performed by the computer system to retrieve data from a database stored on the computer system, the method comprising: (a) combining join predicates from a query with local predicates from each branch of one or more UNION ALL views referenced by the query, wherein the query joins two or more of the UNION ALL views, each UNION ALL view contains a UNION ALL of one base table with a local predicate specifying a data range in the base table, and the join predicates are on columns of the UNION ALL views that correspond to the loc
- Claim 2Depends on #1
The method of claim 1 , wherein a select-list of the query does
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 18 total)
References Cited — Backward Prior Art (19)
Non-Patent Literature (4)
- Gauram Bhargava et al, "Efficient processing of outer joins and aggregate functions," 1996, IEEE, pp. 411-449.
- Hamid Pirahesh, Joseph M. Hellerstein and Waquar Hasan 1992, Extensible/Rule Based Query Rewrite Optimization in Starburst, pp. 38-48.
- Oracle7 Tuning, release 7.3.3, Managing Partition Views, copy right 1997.
- Rada Chirkova, Alon Y. Halevy and Dan Suciu 2002, A formal perspective on the view selection problem, pp. 216-227.