Representation for data used in query optimization
Abstract
Optimizers must work with numeric data from a variety of sources including column statistics, estimated filter factors, record counts estimated costs and the like. Embodiments provided herein define and represent any such numeric measurements as a Vector of N dimensions, where n is a number of aspects of measurements that a particular optimizer is configured to consider. A particular embodiment provides a 4-dimensional vector where the dimensions represent magnitude, confidence, variance interval, and penalty. Examples of measurements considered by the optimizer, and which may be represented as a vector, include cost, estimated selectivity of a predicate, estimated number of records returned from part or all of a query, estimated record fanout when joining one file to another, etc.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 36.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of optimizing and processing a query in a database management system in order to retrieve data from computer storage, the method comprising: receiving a query; preparing a first execution plan for the query; calculating a cost for the first execution plan, wherein the cost is represented as a first vector quantity comprising at least two dimensions, wherein at least one dimension is selected from a magnitude, a variance range, a confidence and a penalty; wherein the magnitude is a value having the highest probability to be within the variance range, wherein the variance range is a ran
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗