Patents
US 6,601,063 B2#43216357 Most CitedExpiredUnited States (USPTO)Utility

Method of optimally determining lossless joins

2Forward Citations (#43216357 Global)
0.1/yrCitation Velocity (#47233340 Global)
0.94Citation PageRank (#45692032 Global)
17Prior Art Cited
3Claims (1 Indep. · 2 Dep.)
0Drawings / Sheets

Abstract

A method, apparatus, and article of manufacture for optimizing a query being performed by a computer system to retrieve data from a database stored on the computer system. The query is analyzed to identify any joins therein that are lossless and to identify any tables of the identified joins that are eligible for removal. This analysis includes partitioning the joins into lossless and lossy joins, and partitioning the tables of the joins according to their associated quantifiers, wherein each of the quantifiers has a quantifier state indicating whether the table participates in a join that is lossless. The query is then rewritten to eliminate the identified tables that are eligible for removal.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 2.

Claims (3 — 1 Independent, 2 Dependent)

  1. Claim 1Independent Claim

    A method of optimizing a query in a computer, the query being performed by the computer to retrieve data from a database, the method comprising: (a) analyzing the query to identify any lossless joins therein and to identify any parents of the lossless joins; (b) determining which of the parents are eligible to be removed, if none of their columns are referenced after the joins; and (c) rewriting the query to remove the eligible parents.

  2. Claim 2Depends on #1

    The method of claim 1 , further comprising executing the rewritten query in the computer system to retrieve data from the database.

  3. Claim 3Depends on #1

    The method of claim 1 , wherein the parents are eligible for removal if their columns are not selected in the lossless joins.

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (17)

PatentTitleYearCitations
US 5,542,073 AComputer program product for choosing largest selectivities among eligible predicates of join equivalence classes for query optimization199653
US 5,548,758 AOptimization of SQL queries using early-out join transformations of column-bound relational tables199690
CA 2,168,287 A1Method for Detecting and Optimizing Relational Queries with Encoding/Decoding Tables—2
US 5,590,324 AOptimization of SQL queries using universal quantifiers, set intersection, and max/min aggregation in the presence of nullable columns1996113
US 5,659,725 AQuery optimization by predicate move-around1997220
US 5,671,403 AIterative dynamic programming system for query optimization with bounded complexity1997161
US 5,822,750 AOptimization of correlated SQL queries in a relational database management system1998277
US 5,832,477 AMethod and apparatus for reordering complex SQL queries containing inner and outer join operations199871
EP 0,877,327 A2Method and apparatus for performing a join query in a database system—8
US 5,848,406 AMethod for presenting information on display devices of varying sizes199830
US 5,864,842 AOptimization of SQL queries using hash star join operations1999179
US 5,930,785 AMethod for detecting and optimizing queries with encoding/decoding tables1999112
US 5,960,427 AReordering of complex SQL queries involving groupbys, joins, outer joins and full outer joins199950
US 5,991,754 ARewriting a query in terms of a summary based on aggregate computability and canonical format, and when a dimension table is on the child side of an outer join1999224
US 6,134,543 AIncremental maintenance of materialized views containing one-to-one lossless joins200098
US 6,438,542 B1Method of optimally determining lossless joins200216
US 6,449,606 B1Using a materialized view to process a related query containing an antijoin200243

Non-Patent Literature (5)

  • IBM Research Disclosure, "Implement IDAP Search Queries with SQL", Document No. 41695, Dec. 1998, pp. 1663-1665.
  • J.K. Mullin, "Estimating the Size of a Relational Join", Informational Systems, vol., 18, No. 3, pp. 189-196 Apr. 1993 (Abstract only -1pp).
  • K. Munakata, "Integration of Maximum Information Using Outerjoins, Predicates and Foreign Functions", IEICE Transactions on Information and Systems, vol. E82-D, No. 1, Jan. 1999, pp. 64-75, (Abstract only -1pp.).
  • K.V.S.V.N. Raju and Arun K. Majumdar, "Fuzzy Functional Dependencies and Lossless Join Decomposition of Fuzzy Rational Database System", ACM, pp. 129-166, 1988.*
  • Sreekumar T. Shenoy et al., "A System for Semantic Query Optimization", ACM 0-89791-236-5/87/0005/0181, 1987, pp. 181-188.