Patents
US 7,987,178 B2#7640614 Most CitedActiveUnited States (USPTO)Utility

Automatically determining optimization frequencies of queries with parameter markers

13Forward Citations (#7640614 Global)
0.9/yrCitation Velocity (#8336576 Global)
2.36Citation PageRank (#11131997 Global)
41Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A method and system for automatically determining optimization frequencies of queries having one or more parameter markers. Execution plans for a query are generated and each plan is associated with one or more bind value sets. An optimization frequency is selected based on differences between pairs of execution costs where one execution cost of a pair is a cost of executing the query with a bind value set via a first execution plan and the other execution cost of the pair is a cost of optimally executing the query with the bind value set via a second execution plan. The differences are based on maximum selectivity or cardinality distances associated with the bind value sets. If none of the differences exceeds a predefined value, the query is optimized once. If at least one of the differences exceeds the predefined value, the query is reoptimized each time the query is executed.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented method of automatically determining an optimization frequency of a query having one or more parameter markers, said method comprising: obtaining, by a computing system, a plurality of bind value sets and a plurality of measurement sets associated with said bind value sets in a one-to-one correspondence, each bind value set including one or more bind values and associated with said one or more parameter markers of said query, and each measurement set selected from the group consisting of one or more selectivity measurements and one or more cardinality measurements; genera

Technical Overview & Description

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

References Cited — Backward Prior Art (41)

PatentTitleYearCitations
US 5,412,804 AExtending the semantics of the outer join operator for un-nesting queries to a data base1995256
US 5,544,355 AMethod and apparatus for query optimization in a relational database system having foreign functions1996174
US 5,819,255 ASystem and method for database query optimization1998183
US 5,822,747 ASystem and method for optimizing database queries1998167
US 6,021,405 ASystem and method for optimizing database queries with improved performance enhancements2000125
US 6,061,676 AEffecting constraint magic rewriting on a query with the multiset version of the relational algebric theta-semijoin operator2000125
WO 0,055,755 A2Method for extending native optimization in a database system—2
US 6,205,441 B1System and method for reducing compile time in a top down rule based system using rule heuristics based upon the predicted resulting data flow2001122
US 6,219,660 B1Access path selection for SQL with variables in a RDBMS2001102
US 6,330,552 B1Database query cost model optimizer2001134
US 6,351,742 B1Method and mechanism for database statement optimization200295
US 6,353,818 B1Plan-per-tuple optimizing of database queries with user-defined functions2002210
US 6,356,891 B1Identifying indexes on materialized views for database workload200282
US 6,510,428 B2Method and system of database divisional management for parallel database system200328
US 6,529,901 B1Automating statistics management for query optimizers2003191
US 6,735,594 B1Transparent parameter marker support for a relational database over a network200418
US 6,757,670 B1Method and system for query processing200475

Non-Patent Literature (5)

  • Cole et al., "Optimization of Dynamic Query Evaluation Plans"; Dec. 1993; pp. 1-23.
  • Dietterich, et al.; Solving Multiclass Learning Problems via Error-Correcting Output Codes; Journal of Artificial Intelligence Research 2 (1995); Submitted Aug. 1994; published Jan. 1995; pp. 263-286.
  • Faruk Polat et al. "Semantic information based-alternative plan generation for multiple query optimization",Informatin Sciences 137 (2001) 103-133.
  • Florian Waas1; et al. "Counting, Enumerating, and Sampling of Execution Plans in a Cost-Based Query Optimizer",ACM 2000, pp. 499-509.
  • Ganguly, Sumit; "Design and Analysis of Parametric Query Optimization Algorithms"; Proceedings of the 24th VLDB Conference New York, USA, 1998; pp. 228-238.