×

Sampling statistics in a database system

  • US 7,778,996 B2
  • Filed: 09/25/2002
  • Issued: 08/17/2010
  • Est. Priority Date: 09/25/2002
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented database system, comprising:

  • a processor for receiving a query to be executed against a database table stored within a computer storage device, said processor executing the steps of;

    scanning a sample of said table, the sample containing less than all rows of the table;

    detecting whether data skew exists in a table column within the sample of said table;

    adjusting a size of the sample as the table is scanned based on the detected data skew;

    collecting statistics based on the adjusted sample; and

    optimizing the performance of said query executed against said database table based upon said collected statistics.

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