发明名称 Estimating a number of rows returned by a recursive query
摘要 A number of rows that a recursive query will retrieve from a table is estimated by recursively probing an index associated with the table. A recursive query includes a seed and a recursive predicate, each of which is associated with a respective column in the table. If the index has a leading column that matches the table column associated with the seed, and the index has a secondary column that matches the table column associated with the recursive predicate, then the index is recursively probed until a threshold depth of the recursive probing is reached or until all nodes of the index have been examined. The estimated number of rows that the recursive query will retrieve is then calculated based on either the number of rows examined in the index or based on the threshold depth, a cardinality of the secondary column, and a cardinality of the primary column.
申请公布号 US2008071754(A1) 申请公布日期 2008.03.20
申请号 US20070986104 申请日期 2007.11.19
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 MURAS BRIAN R.
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址