Patents
US 8,635,206 B2#21437373 Most CitedActiveUnited States (USPTO)Utility

Database query optimization

5Forward Citations (#21437373 Global)
0.4/yrCitation Velocity (#19372851 Global)
1.39Citation PageRank (#25862816 Global)
19Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

In some embodiments, a method includes detecting a structured query language (SQL) query. The method can also include determining that the SQL query includes a first sub-query and a second sub-query, wherein the first sub-query and second sub-query are operands for a Union operation, wherein a first result of the first sub-query is associated with a first Group By operation, wherein a second result of the second sub-query is associated with a second Group By operation, and wherein a result of the Union operation is associated with a third Group By operation. The method can also include determining that partitioning columns are the same for the first and second Group By operations; determining that the first and second sub-queries include identical algebraic functions; determining that the first Group By operation and first sub-query are not referenced elsewhere in the SQL query; and transforming the SQL query into an optimized query.

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 computer-implemented method for efficiently transforming a database query comprising: detecting a database query; and in response to detecting the database query, performing operations including: (a) determining that the database query includes a first sub-query and a second sub-query, wherein the first sub-query and second sub-query are operands for a Union operation, wherein a first result of the first sub-query is associated with a first Group By operation, wherein a second result of the second sub-query is associated with a second Group By operation, and wherein a result of the Union ope

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,598,559 AMethod and apparatus for optimizing queries having group-by operators1997205
US 5,659,725 AQuery optimization by predicate move-around1997220
US 6,285,997 B1Query optimization with deferred update and autonomous sources2001107
US 2002198872 A1Database system providing optimization of group by operator over a union all—74
US 2003055814 A1Method, system, and program for optimizing the processing of queries involving set operators—58
US 6,691,101 B2Database system providing optimization of group by operator over a union all2004126
US 2006265356 A1Self join elimination through union—4
US 7,167,853 B2Matching and compensation tests for optimizing correlated subqueries within query using automatic summary tables200721
US 7,379,933 B1Union all rewrite for aggregate queries with grouping sets200816
US 7,440,937 B2Self join elimination through union20088
US 7,440,942 B2Database manipulations using group theory200813
US 7,533,087 B2Method, system, and program for executing a query having a union all operator and data modifying operations20096
US 7,562,073 B2Business object search using multi-join indexes and extended join indexes20094
US 7,685,150 B2Optimization of queries over XML views that are based on union all operators20106
US 7,792,856 B2Entity-based business intelligence20108
US 2011282864 A1Method and System for Optimizing Queries in a Multi-Tenant Database Environment—63
US 2011314000 A1Transformation rule profiling for a query optimizer—33
US 2013006960 A1Optimizing Database Queries—4
US 8,392,419 B2Computer research tool for the organization, visualization and analysis of metabolic-related clinical data and method thereof201319

Non-Patent Literature (5)

  • "U.S. Appl. No. 13/172,094 Office Action", Apr. 11, 2013 , 22 pages.
  • Akinde, Michael O. et al., "Efficient Computation of Subqueries in Complex OLAP", 19th Intna'l Conf. on Data Engineering(Cat. No. 03CH37405) 2003 , pp. 163-174.
  • Bellamkonda, Srikanth et al., "Enhanced Subquery Optimizations in Oracle", VLDB'09; Endowment/ACM Aug. 24-28, 2009 , 12 pages.
  • Chaudhuri, Surajit et al., "Optimizing Queries with Aggregate Views", Advances in Database Technology-EDBT'96; Intna't Conf on Extending Database Technolgy 1996 , pp. 167-182.
  • Chen, Dongfeng et al., "Query Optimization using Restructured Views: Theory and Experiments", IBM TDB 10-88; pp. 337-342; IP.COM/IPCOM000058418D Oct. 1, 1988 , 36 pages.