Method of optimally determining lossless joins
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)
- 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.
- 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.
- 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 ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (17)
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.