Adaptive cursor sharing
Abstract
Techniques for sharing cursors are provided. When a new query is issued, a database server determines whether the new query is semantically equivalent to a previous query. If so, then database server computes statistics associated with the new query. Based on the statistics, the database server determines whether compiling the new query would produce an execution plan that satisfies certain criteria. If so, then the cursor is used to execute the new query. In another approach, one cursor sharing technique (CST) is used to determine which cursor to use to execute a first set of semantically-equivalent queries. Statistics are gathered during execution of the first set of queries. The database server determines, based on the statistics, when to switch from using the first CST to a different CST. The different CST is used to determine which cursor to use to execute a second set of queries that are semantically-equivalent to the first set.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 32.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: while a particular cursor is in a first state, performing the steps of: determining, using a first cursor sharing technique, whether the particular cursor that was created for a particular query should be used to execute one or more queries; in response to determining that the particular cursor should be used to execute the one or more queries, using the particular cursor to execute the one or more queries; in response to determining that the particular cursor should not be used to execute the one or more queries, executing the one or more queries without using the particu
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 32 total)
References Cited — Backward Prior Art (8)
Non-Patent Literature (2)
- Imre, S., "The Power of Cursor Sharing in 9i" downloaded Aug. 6, 2007 from Internet <http://www.quest-pipelines.com/newsletter-v2/cursor—sharing.htm > 4 pages.
- Imre, S., "The Power of Cursor Sharing in 9i" downloaded Aug. 6, 2007 from Internet 4 pages.