Patents
US 6,571,233 B2#692776 Most CitedExpiredUnited States (USPTO)Utility

Optimization of SQL queries using filtering predicates

59Forward Citations (#692776 Global)
2.6/yrCitation Velocity (#1236316 Global)
5.30Citation PageRank (#3018314 Global)
14Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

Abstract

A technique for optimizing execution of a query that accesses data stored on a data store connected to a computer. Query predicates involving different data types are identified. A second query predicate is generated which includes matching data types, and if necessary, converted operators. The second query predicate with the matching data types and/or converted operators is executed to obtain a subset of records using an index manager or data manager. The subset of records is converted to the data types of the remaining query predicates. The first query predicate is applied against the subset of records to obtain a result, and the remaining query predicates of the original query are applied to the result of the first query predicate and any other additional converted query predicates to obtain a final result.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 59.

Claims (2 — 1 Independent, 1 Dependent)

  1. Claim 1Independent Claim

    A method of optimizing execution of a query against a database in a datastore of a computer, the method comprising: identifying a first query predicate in the query, wherein the first query predicate comprises a comparison between a first data type and a second data type, the first data type is different from the second data type, and the first predicate is non-sargable or directionally-sargable; generating a second query predicate with matching data types, wherein the second data type is converted to the first data type, end the second predicate is sargable or semi-sargable; and executing the

  2. Claim 2Depends on #1

    The method of claim 1 , further comprising converting an operator of the first query predicate, wherein the second query predicate incl

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (14)

PatentTitleYearCitations
US 5,367,675 AComputer automated system and method for optimizing the processing of a query in a relational database system by merging subqueries with the query1994219
US 5,590,324 AOptimization of SQL queries using universal quantifiers, set intersection, and max/min aggregation in the presence of nullable columns1996113
US 5,615,361 AExploitation of uniqueness properties using a 1-tuple condition for the optimization of SQL queries199768
US 5,680,603 AMethod and apparatus for reordering complex SQL queries containing inner and outer join operations199734
US 5,706,495 AEncoded-vector indices for decision support and warehousing1998315
US 5,826,076 AComputer-based information access method and apparatus to permit SQL-based manipulation of programming language-specific data files199850
US 5,864,847 AReordering of complex SQL queries involving groupbys, joins, outer joins and full outer joins199917
US 5,875,447 AReordering of complex SQL queries involving GROUPBYs, joins, outer joins and full outer joins199933
US 5,895,465 AHeuristic co-identification of objects across heterogeneous information sources1999110
US 5,960,427 AReordering of complex SQL queries involving groupbys, joins, outer joins and full outer joins199950
US 5,963,933 AEfficient implementation of full outer join and anti-join199993
US 6,081,799 AExecuting complex SQL queries using index screening for conjunct or disjunct index operations200048
US 6,327,587 B1Caching optimization with disk and/or memory cache management200194
US 2002083049 A1Data exploration system and method—36

Non-Patent Literature (5)

  • "Access Path Selection in a Relational Database Management System", IBM Technical Disclosure Bulletin, vol. 22, No. 4, pp. 1657-1660, Sep. 1979.
  • "DB2 Cost Formula", IBM Technical Disclosure Bulletin, 34:12, No. 12, p. 389-394, May 1992.
  • Dalamagas, T. et al. "A visual database system for spatial and non-spatial data management", Visual Database Systems 4 (VDB4). IFIP TC2/WG2.6 Fourth Working Conference on Visual Database Systems 4 (VDB4), pp. 105-122, Published: London, UK 1998, vii+380 pp.
  • Griffiths, S. P. et al. "Access path selection in a relational database management system", Rpt. No. RJ2429 (32240). Aug. 1, 1979, 59 pp.
  • O'Neil, P. et al. "Improved query performance with variant indexes", SIGMOD Record, vol. 26, No. 2, pp. 38-49, Jun. 1997.