Patents
US 8,868,545 B2#16117322 Most CitedActiveUnited States (USPTO)Utility

Techniques for optimizing outer joins

7Forward Citations (#16117322 Global)
0.6/yrCitation Velocity (#13758213 Global)
1.31Citation PageRank (#28185688 Global)
30Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

Techniques for optimizing outer joins in database operations are provided. In an embodiment, a query having an outer join with a GROUP BY clause is rewritten and expanded to expand a first level partition of that GROUP BY clause to produce a modified query. In another situation, rows associated with processing a query are each row split and then hashed based at least in part on attributes of the outer join predicate. A left outer join is performed and a global aggregation processed to produce a spooled table to process the query.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method implemented and programmed within a non-transitory computer-readable storage medium and processed by one or more processors, the processors configured to execute the method, comprising: detecting in a query an outer join on a join table and a second table, the query also including a GROUP BY clause; expanding the GROUP BY clause to double a total number of groups in a first level partition of the GROUP BY clause for the second table by generating additional query statements in an expanded query that when executed produce a first list of first attributes that satisfy an ON clause predi

Technical Overview & Description

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

References Cited — Backward Prior Art (30)

PatentTitleYearCitations
US 5,121,494 AJoining two database relations on a common field in a parallel relational database field1992100
US 5,713,015 AReordering of complex SQL queries involving GROUPBYs, joins, outer joins and full outer joins199832
US 5,724,568 AReordering complex SQL queries containing inner and outer join operations using hypergraphs and required sets199831
US 5,832,477 AMethod and apparatus for reordering complex SQL queries containing inner and outer join operations199871
US 5,864,842 AOptimization of SQL queries using hash star join operations1999179
US 5,864,847 AReordering of complex SQL queries involving groupbys, joins, outer joins and full outer joins199917
US 5,875,447 AReordering of complex SQL queries involving GROUPBYs, joins, outer joins and full outer joins199933
US 5,963,933 AEfficient implementation of full outer join and anti-join199993
US 6,298,342 B1Electronic database operations for perspective transformations on relational tables using pivot and unpivot columns2001221
US 6,341,281 B1Database system with methods for optimizing performance of correlated subqueries by reusing invariant results of operator tree2002329
US 6,438,541 B1Method and article for processing queries that define outer joined views200225
US 6,449,606 B1Using a materialized view to process a related query containing an antijoin200243
US 6,477,525 B1Rewriting a query in terms of a summary based on one-to-one and one-to-many losslessness of joins200280
US 2004006561 A1System and methodology for generating bushy trees using a left-deep tree join enumeration algorithm—46
US 2004220923 A1System and methodology for cost-based subquery optimization using a left-deep tree join enumeration algorithm—167
US 2006129572 A1Complex data access—11
US 2006167865 A1Database System with Methodology for Generating Bushy Nested Loop Join Trees—96
US 2006287979 A1Cost-based subquery correlation and decorrelation—9
US 7,188,098 B2Query transformation for union all view join queries using join predicates for pruning and distribution200718
US 2008071785 A1Fine-grained access control in a database by preventing information leakage and removing redundancy—62
US 2008140696 A1System and method for analyzing data sources to generate metadata—113
US 2008215534 A1Cost-based subquery correlation and decorrelation—7
US 7,440,937 B2Self join elimination through union20088