发明名称 Query optimization method for incrementally estimating the cardinality of a derived relation when statistically correlated predicates are applied
摘要 A method, apparatus, and article of manufacture for incrementally estimating the cardinality of a derived relation when statistically correlated predicates are applied. A plurality of query execution plans (QEPs) are generated for the query. During the generation of the QEPs, a cardinality is computed for any of the QEPs in which two or more predicates are correlated to each other. The cardinality comprises a number of rows expected to be returned by the QEP and is computed in an incremental fashion for each operator of the QEP. The computations include calculations that may be done prior to the generation of the QEPs and calculations that are necessarily done as each operator of a QEP is added to that QEP. Thereafter, one of the QEPs is chosen to satisfy the query in a manner that minimizes an estimated cost metric, wherein the cost metric is computed using the cardinality.
申请公布号 US6738755(B1) 申请公布日期 2004.05.18
申请号 US20000516446 申请日期 2000.02.29
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 FREYTAG JOHANN CHRISTOPH;LOHMAN GUY MARING;SIMMEN DAVID E.;ZUZARTE CALISTO PAUL
分类号 G06F17/30;(IPC1-7):G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址