EP2665002A2

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.

EP2665002A2, drawing sheet 1
Sheet 1 of 55

Term

Projected expiry 21 June 2030.

  1. Priority and filed
  2. Published
  3. Today
  4. Projected expiry

16 claims: 2 independent, 14 dependent

  1. 1
    A method of counting items in a database system comprising:at the 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;identifying an M number of items;counting unique items of the M number of items;determining a logcount for the unique items of the M number of items;and storing the logount for the unique items.
  2. 13
    A method of using one or more combinators in managing a database system comprising:at the 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, wherein the one or more programs includes a ranking combinator;receiving one or more ranking criteria;ranking a plurality of items based on the one or more ranking criteria, wherein the number of the plurality of items is limited by a predetermined N number;and replacing the ranking to update the plurality of items based on a predetermined time period.