Database query optimization
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)
- 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 ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (19)
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.