Cost-based subquery correlation and decorrelation
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)
- 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 ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (19)
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.