发明名称 Approximating a database statistic
摘要 A method and apparatus for approximating a database statistic, such as the number of distinct values (NDV) is provided. To approximate the NDV for a portion of a table, a synopsis of distinct values is constructed. Each value in the portion is mapped to a domain of values. The mapping function is implemented with a uniform hash function, in one embodiment. If the resultant domain value does not exist in the synopsis, the domain value is added to the synopsis. If the synopsis reaches its capacity, a portion of the domain values are discarded from the synopsis. The statistic is approximated based on the number (N) of domain values in the synopsis and the portion of the domain that is represented in the synopsis relative to the size of the domain.
申请公布号 US7636731(B2) 申请公布日期 2009.12.22
申请号 US20070796102 申请日期 2007.04.25
申请人 ORACLE INTERNATIONAL CORPORATION 发明人 CRUANES THIERRY;SHAFT URI;SU HONG;DAGEVILLE BENOIT;CHAKKAPPEN SUNIL P.;ZAIT MOHAMED
分类号 G06F7/00;G06F17/00;G06F17/30 主分类号 G06F7/00
代理机构 代理人
主权项
地址