Method and apparatus for associating logical conditions with the re-use of a database query execution strategy
Abstract
A query facility for database queries saves and re-uses query execution strategies, and automatically determines whether a strategy can be re-used when an imported variable changes. The query facility automatically saves one or more logical conditions associated with the one or more imported variables in the query. When the query is reused, the logical conditions are evaluated using the imported variable values, and the previously saved execution strategy is used only if the condition or conditions are met. Preferably, the logical conditions express a range of imported variable values which are included in a database subset data structure used by the saved query execution strategy, such as a materialized query table or partitioned table. Logical conditions are preferably generated by negating the predicates from a logical expression defining the applicability of the execution strategy, inserting the negated predicates into the query, and performing a transitive closure.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for executing a database query in a computer system, comprising the steps of: automatically generating a re-usable query execution strategy for a database query, said database query containing at least one condition comparing a first database field to an imported variable value, said re-usable query execution strategy employing a database subset data structure containing data from a subset of records in said database, said subset having a scope defined with reference to said first database field, said re-usable query execution strategy being re-usable for multiple execution invocation
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (5)
Non-Patent Literature (2)
- U.S. Appl. No. 10/688,951, "Method and System for Reducing Host Variable Impact On Access Path Selection," filed Oct. 21, 2003 by Namik Hrle.
- U.S. Appl. No. 10/955,737, "Method and Apparatus for Re-Evaluating Execution Strategy for a Database Query," filed Sep. 30, 2004 by Paul R. Day et al.