发明名称 Technique for factoring uncertainty into cost-based query optimization
摘要 A technique for factoring uncertainty into cost-based query optimization includes: determining the degree of uncertainty involved in the cost estimates for the query, determining the degree of sensitivity the query has to that uncertainty, and determining if there is an access path that performs well across the range of possible conditions that could occur at execution time, reducing the risk of performance spikes and performance volatility. If such an access path exists, select that access path; if not, perform parametric query optimization or query re-optimization.
申请公布号 US9208198(B2) 申请公布日期 2015.12.08
申请号 US201213653515 申请日期 2012.10.17
申请人 International Business Machines Corporation 发明人 Alpers Jason L.;Beavin Thomas A.;Bossman Patrick D.;Guo Shuanglin;Purcell Terence P.
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Gates & Cooper LLP 代理人 Gates & Cooper LLP
主权项 1. An apparatus for generating an optimal access path to data for a query being performed by a computer system to retrieve data from a database stored in a data storage device coupled to the computer system, the apparatus comprising: (a) a computer system having a data storage device coupled thereto, the data storage device storing data in a database; and (b) a relational database management system performed by the computer system, the relational database management system configured for: generating a plurality of access paths for the query; determining an uncertainty for the query, wherein the uncertainty is the difference between selectivity assumptions about the costs for each of the access paths; determining a sensitivity of the query to the uncertainty, wherein the sensitivity is the difference between the costs of the access paths for the selectivity assumptions; and selecting one of the access paths according to the uncertainty and the sensitivity; wherein the selectivity assumptions comprise normal, pessimistic or optimistic selectivity assumptions, the uncertainty is the difference between the normal, pessimistic or optimistic selectivity assumptions about the costs for each of the access paths, and the sensitivity is the difference between the costs of the access paths for the normal, pessimistic or optimistic selectivity assumptions.
地址 Armonk NY US