Automatically determining optimization frequencies of queries with parameter markers
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)
- 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 ↗
Cited By — Indexed Forward Citations (13 of 13 total)
References Cited — Backward Prior Art (41)
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.