Sampling statistics in a database system
First Claim
Patent Images
1. A method for use in a database system, comprising:
- scanning a sample of a table, the sample containing less than all rows of the table;
determining a characteristic of data read by the scanning; and
adjusting a size of the sample as the table is scanned based on the determined characteristic; and
collecting statistics based on the sample.
2 Assignments
0 Petitions
Accused Products
Abstract
A database system has the ability to perform sampled statistics collection, in which collection of statistics of a table is based on a sample (less than all rows of the table). The sample size is adjusted as the table is scanned in response to detecting a predetermined characteristic of the table (e.g., skewed data values are detected).
54 Citations
22 Claims
-
1. A method for use in a database system, comprising:
-
scanning a sample of a table, the sample containing less than all rows of the table;
determining a characteristic of data read by the scanning; and
adjusting a size of the sample as the table is scanned based on the determined characteristic; and
collecting statistics based on the sample. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. An article comprising at least one storage medium containing instructions that when executed cause a system to:
-
collect statistics of an attribute of a table based on a sample of the table, the sample having less than all rows of the table;
detect for a predetermined characteristic of the table; and
vary a size of the sample during statistics collection in response to detecting the predetermined characteristic. - View Dependent Claims (12, 13, 14, 15, 16)
-
-
17. A database system comprising:
-
a storage to store a table; and
a controller to;
read a sample of the table that is less than all rows of the table;
collect statistics based on the sample; and
adjust a size of the sample based on a predetermined characteristic of the table. - View Dependent Claims (18, 19, 20, 21, 22)
-
Specification