Compile-time optimizations of queries with SQL spreadsheet
Abstract
Described herein are optimizations and execution strategies for spreadsheet extensions to SQL. The partitioning of data, as specified in a spreadsheet clause, provides a way to parallelize the computation of spreadsheet and to provide and improve scalability. Even if the partitioning is not explicitly specified in the spreadsheet clause, the database optimizer can automatically infer the partitioning in some cases. Efficient hash based access structures on relations can be used for symbolic array addressing, enabling fast computation of formulas. When rewriting SQL statements, formulas whose results are not referenced in outer blocks can be removed from the spreadsheet clause, thus removing unnecessary computations. The predicates from other query blocks can be moved inside query blocks with spreadsheets clauses, thus considerably reducing the amount of data to be processed. Conditions for validity of this transformation are given.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 15.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for rewriting queries, the method comprising the computer implemented steps of: examining a first query that references a relation to which a second query evaluates; wherein the second query defines an array and a first set of formulas that reference the array; wherein the array has one or more dimensions; wherein the first query includes one or more predicates; wherein the second query does not include the one or more predicates; determining whether one or more criteria for rewriting said first query or said second query are satisfied; if said one or more criteria for rewriting said
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 15 total)
References Cited — Backward Prior Art (19)
Non-Patent Literature (5)
- European Patent Office, "Communication Pursuant to Article 96(2) EPC", European Patent Office, application No. 01 984 272.3-2201, dated Apr. 22, 2004, 4 pages.
- European Patent Office, "Invitation Pursuant to Article 96 (2) and Rule 51 (2) EPC", application 01 984 272.3-2201, dated Dec. 22, 2004, 7 pages.
- Gray, Jim, et al., "Data Cube: A Relational Aggregation Operator Generalizing Group-By, Cross-Tab, and Sub-Totals", Microsoft, pp. 152-159.
- Haydu, John, "The SQL Model Clause of Oracle Database 10g", Oracle Corporation, Aug. 2003, 20 pages.
- J.M. Hellerstein and M. Stonebraker. "Predicate migration: Optimizing queries with expensive predicates," Proceedings of ACM SIGMOD 2003, Washington DC, 1993.