发明名称 ESTIMATING ROWS RETURNED BY RECURSIVE QUERIES USING FANOUT
摘要 In an embodiment, a recursive query is received that comprises a first select statement with a seed select statement and a second select statement with a recursive reference, wherein the recursive query further identifies at least two columns in at least one table, wherein the at least two columns have parent-child relationships represented by nodes in a graph, wherein the graph represents the organization of values in rows in the at least one table. A target recursion depth is calculated for the graph based on a fanout of the graph. In an embodiment, the target recursion depth is calculated by summing the fanout at each recursion depth of the graph multiplied by a number of nodes at each recursion depth of the graph. An estimated number of rows that the recursive query will return is estimated based on the target recursion depth.
申请公布号 US2014101128(A1) 申请公布日期 2014.04.10
申请号 US201213645714 申请日期 2012.10.05
申请人 INTERNATIONAL BUSINESS MACHINES CORP;INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 CARSTON LYNNETTE E.;MURAS BRIAN R.;PASSE ANDREW P.
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址