×

Partial pre-aggregation in relational database queries

  • US 7,133,858 B1
  • Filed: 06/30/2000
  • Issued: 11/07/2006
  • Est. Priority Date: 06/30/2000
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method, implemented by a computing device, for processing a database query, comprising:

  • partially pre-aggregating records in a database to provide a result that contains at least two records having like grouping column values;

    aggregating records derived from the result that contains at least two records having like grouping column values to provide a result that contains records having unique grouping column values; and

    partially pre-aggregating the records in the database only if an estimation, based on a calculation of a probability that a record will be absorbed by a group of records already in memory, indicates that a number of records in the result that contains at least two records having like grouping column values is significantly less than a number of records in the database, wherein the estimation is based on factors comprising;

    a number of output records, T(N);

    a number of input records, N; and

    a relationship
    T(N)=M+(N−

    M
    )(1−

    A(R(M)))=M+(N−

    M


    i=1D(1−

    pi)R(M);

    wherein M records can fit into memory.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×