Patents
US 7,376,646 B2#20129063 Most CitedExpiredUnited States (USPTO)Utility

Cost-based subquery correlation and decorrelation

5Forward Citations (#20129063 Global)
0.3/yrCitation Velocity (#27159873 Global)
1.67Citation PageRank (#19319019 Global)
19Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

Techniques are provided that determine that a query includes at least one subquery that may be correlated or decorrelated. An internal representation of the query that represents the subquery in both correlated and decorrelated form is generated, wherein the internal representation includes at least one virtual table.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method for processing a query, comprising: determining that the query includes at least one subquery that is to be correlated or decorrelated; and generating an internal representation of the query that represents the subquery in both correlated and decorrelated form, wherein the internal representation includes at least one virtual table, and the query includes an outer table, and wherein the internal representation represents the query using one or more query blocks and further comprising: selecting a bottom-most query block; determining correlated costs of the query block in response to d

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,367,675 AComputer automated system and method for optimizing the processing of a query in a relational database system by merging subqueries with the query1994219
US 5,548,755 ASystem for optimizing correlated SQL queries in a relational database using magic decorrelation1996153
US 5,551,031 AProgram storage device and computer program product for outer join operations using responsibility regions assigned to inner tables in a relational database199652
US 5,557,791 AOuter join operations using responsibility regions assigned to inner tables in a relational database199689
US 5,724,570 AMethod and apparatus for a complete SQL subquery elimination process1998104
US 5,761,657 AGlobal optimization of correlated subqueries and exists predicates199872
US 5,822,750 AOptimization of correlated SQL queries in a relational database management system1998277
US 6,032,143 AEvaluation of existential and universal subquery in a relational database management system for increased efficiency200072
US 6,061,676 AEffecting constraint magic rewriting on a query with the multiset version of the relational algebric theta-semijoin operator2000125
US 6,226,637 B1System, method, and program, for object building in queries over object views200173
US 6,341,281 B1Database system with methods for optimizing performance of correlated subqueries by reusing invariant results of operator tree2002329
US 6,411,951 B1Evaluating SQL subqueries2002104
US 6,529,896 B1Method of optimizing a query having an existi subquery and a not-exists subquery200391
US 2003088558 A1Optimizing correlated queries using automatic summary tables—83
US 6,662,175 B1Semantic query optimization using value correlation200339
US 6,728,694 B1Set containment join operation in an object/relational database management system200423
US 2004153448 A1System and method for transforming queries using window aggregation—27
US 2004220911 A1Method and system for aggregation subquery join elimination—29

Non-Patent Literature (2)

  • Richard Ganski et al., Optimization of nested SQL queries revisited, 1987, Proceeding of ACMSIGMOD, pp. 23-33.
  • Surajit Chaudhuri et al., Optimization of queries with User-defined Predicates, Jun. 1999, ACM Press, vol. 24, Issue 2, pp. 177-228.