×

Database system with methods for performing cost-based estimates using spline histograms

  • US 6,012,054 A
  • Filed: 10/23/1997
  • Issued: 01/04/2000
  • Est. Priority Date: 08/29/1997
  • Status: Expired due to Term
First Claim
Patent Images

1. In a computer system providing a database storing database objects, a method for improving modeling of cost estimates associated with data access occurring during execution of a database query, the method comprising:

  • receiving a request to create a histogram for modeling data distribution of a particular database object;

    in response to said request, creating a histogram having a plurality of histogram cells for modeling occurrence of values in the database object, each cell being associated with a particular range of values from the particular database object, and each cell having a weighting for indicating how often values in the particular range occur in the database object relative to occurrence of other values in the database object; and

    for each particular histogram cell, determining selectivity of the cell by;

    applying interpolation to the cell for determining a spline weighting indicating how values are actually distributed within the particular range of the cell, andbased on the determination, assigning said spline weighting to the cell for indicating how values are distributed within the cell itself.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×