Patents
US 7,603,339 B2#7057112 Most CitedActiveUnited States (USPTO)Utility

Merging synopses to determine number of distinct values in large databases

14Forward Citations (#7057112 Global)
0.8/yrCitation Velocity (#8981215 Global)
2.11Citation PageRank (#13360089 Global)
12Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A method and apparatus for merging synopses to determine a database statistic, e.g., a number of distinct values (NDV), is disclosed. The merging can be used to determine an initial database statistic or to perform incremental statistics maintenance. For example, each synopsis can pertain to a different partition, such that merging the synopses generates a global statistic. When performing incremental maintenance, only those synopses whose partitions have changed need to be updated. Each synopsis contains domain values that summarize the statistic. However, the synopses may initially contain domain values that are not compatible with each other. Prior to merging the synopses the domain values in each synopsis is made compatible with the domain values in the other synopses. The adjustment is made such that each synopsis represents the same range of domain values, in one embodiment. After “compatible synopses” are formed, the synopses are merged by taking the union of the compatible synopses.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer implemented method comprising: merging a plurality of base synopses to generate a merged synopsis, wherein each base synopsis summarizes a statistic for a portion of a table, and wherein each base synopsis contains values for a respective defined region of a domain of values, wherein the merging includes performing the following: for each value that is any of the plurality of base synopses and is in a intersection of the respective defined regions, if the value does not exist in the merged synopsis, adding the value to the merged synopsis; after merging the plurality of base synopse

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, l0g 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.