SQL execution plan verification
Abstract
Approaches, techniques, and mechanisms are disclosed for ensuring that a database command is executed according to a query plan that has been verified to be actually optimal. Except in rare circumstances, a database server does not execute a query plan unless it is first verified by the database server. The database server receives a request to execute a database command. The database server determines an unverified plan is the best plan for satisfying the request. Rather than risk the unknown behavior of an unverified plan, the database server instead satisfies the request according to a verified plan. Subsequently—for example as part of a scheduled job—the database server executes the unverified plan to determine performance statistics. Based at least on the performance statistics, the database server determines whether or not to verify the unverified plan. Techniques for concurrent and optimistic verifications are also disclosed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 12.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: maintaining, at a database server, plan verification data that identifies one or more query execution plans that have been designated as acceptable for use by the database server to execute a database commands, the database command being a query statement that instructs the database server to perform one or more operations on data stored in a database; receiving, at the database server, a first request to execute a database command; at the database server, identifying a plurality of alternative query execution plans for executing the database command in response to the fir
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗