Patents
US 7,188,098 B2#4996760 Most CitedExpiredUnited States (USPTO)Utility

Query transformation for union all view join queries using join predicates for pruning and distribution

18Forward Citations (#4996760 Global)
0.9/yrCitation Velocity (#7562582 Global)
2.54Citation PageRank (#9935641 Global)
19Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

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)

  1. 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

  2. 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 ↗

References Cited — Backward Prior Art (19)

PatentTitleYearCitations
US 5,276,870 AView composition in a data base management system1994220
US 5,822,750 AOptimization of correlated SQL queries in a relational database management system1998277
US 5,963,933 AEfficient implementation of full outer join and anti-join199993
US 6,092,062 ARelational database query optimization to perform query evaluation plan, pruning based on the partition properties2000295
US 6,324,533 B1Integrated database and data-mining system2001126
US 6,339,769 B1Query optimization by transparently altering properties of relational tables using materialized views200291
US 6,345,267 B1Method and system for look ahead query evaluation planning based on interesting partition properties200279
US 6,374,232 B1Method and mechanism for retrieving values from a database200297
US 6,438,542 B1Method of optimally determining lossless joins200216
US 6,496,819 B1Rewriting a query in terms of a summary based on functional dependencies and join backs, and based on join derivability2002153
US 2002194157 A1Partition pruning with composite partitioning—98
US 2003061189 A1System for and method of data compression in a valueless digital tree representing a bitset—46
US 2003061227 A1System and method of providing a cache-efficient, hybrid, compressed digital tree with wide dynamic ranges and simple interface requiring no configuration or tuning—50
US 2003191774 A1Test generator for database management systems providing tight joins—16
US 2004122804 A1Materialized view signature and efficient identification of materialized view candidates for queries—33

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.