Techniques for optimizing outer joins
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)
- 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 ↗