A method of counting unique items in a database system
Abstract
A method of counting items in a database system having one or more nodes comprising one or more processors and memory, the memory of the one or more nodes storing one or more programs to be executed by the one or more processors. An M number of items is identified and the unique items of the M number of items are counted by determining a logcount for the unique items of the M number of items which is then stored. To determine a logcount partitioning each of the unique items of the M number of items are first partitioned into a set of N number of parts, wherein each N part includes a subset of the unique items of the M number of items and wherein each subset of unique items is expressed as a bit value. The lowest unset bit in each of the N number of parts for each subset of the M number of items is then found and the lowest bit in N intermediate values for each subset of unique items in the set of N parts is set. By averaging the lowest unset bit values of the N intermediate values for each set of N parts, the averaged value as a log value expressed in powers-of two is determined.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 0 · Forward citations: 1.
Claims (0)
No claim text indexed for this record.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| CN 104,679,796 A | Selecting method, selecting device and database mirror image cluster node | — | 24 |
References Cited — Backward Prior Art (0)
No backward patent references recorded.
Non-Patent Literature (3)
- "Loglog Counting of Large Cardinalities,'' Marianne Durand and Philippe Flajolet", LNCS, vol. 2832, 2003, pages 605 - 617
- MIN CAI; JIANPING PAN; YU-KWONG KWOK; KAI HWANG: "Fast and Accurate Traffic Matrix Measurement Using Adaptive Cardinality Counting", PROCEEDINGS OF THE 2005 ACMSIGCOMM WORKSHOP ON MINING NETWORK DATA, 2005
- PHILIPPE FLAJOLET; G. NIGEL MARTIN: "Probabilistic Counting Algorithms for Data Base Applications", JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1985