Patents
US 7,636,731 B2#8361162 Most CitedActiveUnited States (USPTO)Utility

Approximating a database statistic

12Forward Citations (#8361162 Global)
0.7/yrCitation Velocity (#10636421 Global)
2.41Citation PageRank (#10760461 Global)
12Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

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.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 12.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method comprising: establishing at least a portion of a domain of values as a selected portion of the domain; constructing a synopsis of a portion of a table by performing the following: for each table value in the portion of the table: mapping the table value to a domain value within the domain; and if the domain value to which the table value mapped does not exist in the synopsis and the domain value is within the selected portion of the domain, adding the domain value to the synopsis; while constructing the synopsis, if the number of domain values in the synopsis exceeds a threshold numbe

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • Cyran, Michele, et al., "Oracle(R) Database Concepts", Oracle, 10g Release 2 (10.2), dated Oct. 2005, 16 pages.
  • Gibbons, Phillip B., et al., "Distinct Sampling for Highly-Accurate Answers to Distinct Values Queries and Event Reports", Proceedings of the 27th VLDB Conference, 2001, 10 pages.
  • Hanson, Eric N., et al., "Statistics Used by the Query Optimizer in Microsoft SQL Server 2005", Microsoft TechNet, retrieved from website: , printed Mar. 27, 2007, 13 pages.
  • Microsoft, "SQL Server Query Optimization and Tuning", Microsoft TechNet, Retrieved from website: , Published Sep. 9, 2003, 7 pages.
  • Othayoth, Raghunath, et al., "The Making of TPC-DS", Copyright 2006 VLDB Endowment, ACM, retrieved from website: , 10 pages.