Patents
US 7,809,712 B2#6445596 Most CitedActiveUnited States (USPTO)Utility

Compile-time optimizations of queries with SQL spreadsheet

15Forward Citations (#6445596 Global)
0.9/yrCitation Velocity (#7632029 Global)
2.16Citation PageRank (#12814231 Global)
19Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

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)

  1. 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 ↗

References Cited — Backward Prior Art (19)

PatentTitleYearCitations
US 5,319,777 ASystem and method for storing and retrieving information from a multidimensional array1994168
US 5,359,724 AMethod and apparatus for storing and retrieving multi-dimensional data in computer memory1994334
US 5,485,608 AMethods and apparatus for updating information in a computer system using logs and state identifiers1996147
US 5,819,282 ADatabase generator199891
US 5,870,760 ADequeuing using queue batch numbers199960
JP H11161656 AData base retrieval and extraction system and recording medium in which control program for data base retrieval and extraction is recorded—11
US 5,943,668 ARelational emulation of a multi-dimensional database1999114
WO 9,948,029 A1Perspective transformations on relational database tables—11
US 5,978,796 AAccessing multi-dimensional data by mapping dense data blocks to rows in a relational database1999198
US 6,298,342 B1Electronic database operations for perspective transformations on relational tables using pivot and unpivot columns2001221
US 6,317,750 B1Method and apparatus for accessing multidimensional data2001295
US 6,389,410 B1Method for minimizing the number of sorts required for a query block containing window functions200223
US 2002107754 A1Rule-based system and apparatus for rating transactions—62
US 6,434,544 B1Stand-alone cartridge-style data aggregation server providing data aggregation for OLAP analyses2002210
US 6,615,241 B1Correspondent-centric management email system uses message-correspondent relationship data table for automatically linking a single stored message with its correspondents2003232

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.