IP Library Granted Patent US 7,386,538
Granted Patent B2
US 7,386,538 · App. 11/089,468 · Granted Jun 10, 2008

Building database statistics across a join network using skew values

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,386,538
App. No.
11/089,468
Granted
Jun 10, 2008
Kind
B2
Abstract

A method that builds column statistics utilizing at least one skew value. The column statistics built using skew values, instead of column statistics built only through random sampling, may be used to more accurately reflect skew values across join networks, and thus enable a query optimizer to better select an access plan that is optimal under current runtime conditions.

Claims (9)

1. A method of building database statistics, the method comprising:

(a) building a first column statistic for a first column in a first table, including detecting a skew value in the first column statistic;

(b) based upon the skew value detected in the first column statistic, using the skew value to build a second column statistic for a second column in a second table that is likely to be joined with the first column in a database query, wherein building the second column statistic comprises including the skew value with a random sample of values in the second column;

(c) storing the skew value for building at least one column statistic; and

(d) determining that the second column is more unique than the first column, wherein building the first column statistic is performed before building the second column statistic based upon the determination that the second column is more unique than the first column.

2. The method of claim 1 , wherein building the first column statistic comprises including the skew value with a random sample of values in the first column.

3. The method of claim 1 , wherein the first column statistic and the second column statistic include at least one of a frequent value list, a data distribution, a histogram, an index, and an encoded vector index.

4. The method of claim 1 , further comprising detecting at least one skew value in the second column statistic.

5. The method of claim 4 , further comprising rebuilding the first column statistic using the detected skew value in the second column statistic.

Assignments (3)
CHANGE OF NAME Recorded Dec 20, 2021
From: FACEBOOK, INC.
To: META PLATFORMS, INC.
Reel/Frame 058553/0802 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 9, 2012
From: INTERNATIONAL BUSINESS MACHINES CORPORATION
To: FACEBOOK, INC.
Reel/Frame 028015/0863 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 12, 2005
From: MURAS, BRIAN ROBERT
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 016056/0330 →