Cardinality estimation of joins
First Claim
1. A method of estimating cardinality of a join of tables using multi-column density values, comprising:
- a) identifying a multi-column density over a set of attributes for each table;
b) identifying a density of a subset of said set of attributes for each table;
c) estimating a number of tuples from each table that participate in the join using densities of the subsets;
d) estimating the cardinality of the join using the multi-column density for each table and the estimated number of tuples that participate in the join from each table.
3 Assignments
0 Petitions
Accused Products
Abstract
A method of estimating cardinality of a join of tables using multi-column density values and additionally using coarser density values of a subset of the multi-column density attributes. In one embodiment, the subset of attributes for the coarser densities is a prefix of the set of multi-column density attributes. A number of tuples from each table that participate in the join may be estimated using densities of the subsets. The cardinality of the join can be estimated using the multi-column density for each table and the estimated number of tuples that participate in the join from each table.
51 Citations
42 Claims
-
1. A method of estimating cardinality of a join of tables using multi-column density values, comprising:
-
a) identifying a multi-column density over a set of attributes for each table;
b) identifying a density of a subset of said set of attributes for each table;
c) estimating a number of tuples from each table that participate in the join using densities of the subsets;
d) estimating the cardinality of the join using the multi-column density for each table and the estimated number of tuples that participate in the join from each table. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method of estimating cardinality of a join of tables using multi-column density values, comprising:
-
a) identifying a multi-column density over a set of attributes for each table;
b) identifying a density of a subset of said set of attributes for each table;
c) identifying a cardinality of each table;
d) estimating the cardinality of the join using the multi-column density for each table, the density of said subset of said set of attributes for each table, and the cardinality of each table. - View Dependent Claims (8, 9, 10, 11, 12, 13, 14)
-
- 15. In a method of estimating cardinality of a join of tables using a multi-column density over a set of attributes is identified for each table and the cardinality of each table, the improvement comprising additionally using a density of a subset of said set of attributes for each table to estimate the cardinality of the join.
-
21. A method of estimating cardinality of a join of tables using multi-column density values and histograms, comprising:
-
a) identifying a multi-column density over a set of attributes for each table;
b) identifying a histogram over an attribute from said set of attributes for each table;
c) aligning buckets of each histogram d) estimating for each bucket in a pair of aligned buckets a number of tuples from each table that participate in the join using densities of the buckets; and
e) estimating the cardinality of the join of a pair of buckets using the multi-column density for each table and the estimated number of tuples that participate in the join from each bucket in the pair of aligned buckets. - View Dependent Claims (22)
-
-
23. A method of estimating cardinality of a join of tables using multi-column density values, comprising:
-
a) identifying a multi-column density over a set of attributes for each table;
b) identifying a histogram over an attribute from said set of attributes for each table;
c) aligning buckets of each histogram;
d) identifying a number of tuples in each bucket of a pair of aligned buckets;
e) estimating the cardinality of the join of the pair of buckets using the multi-column density for each table, the density of each bucket of the pair of buckets, and the number of tuples in each bucket of the pair of buckets. - View Dependent Claims (24)
-
-
25. A computer readable medium having computer executable instructions stored thereon for performing a method of estimating cardinality of a join of tables using multi-column density values, the method comprising:
-
a) identifying a multi-column density over a set of attributes for each table;
b) identifying a density of a subset of said set of attributes for each table;
c) estimating a number of tuples from each table that participate in the join using densities of the subsets;
d) estimating the cardinality of the join using the multi-column density for each table and the estimated number of tuples that participate in the join from each table. - View Dependent Claims (26, 27, 28, 29, 30)
-
-
31. A computer readable medium having computer executable instructions stored thereon for performing a method of estimating cardinality of a join of tables using multi-column density values, the method comprising:
-
a) identifying a multi-column density over a set of attributes for each table;
b) identifying a density of a subset of said set of attributes for each table;
c) identifying a cardinality of each table;
d) estimating the cardinality of the join using the multi-column density for each table, the density of said subset of said set of attributes for each table, and the cardinality of each table. - View Dependent Claims (32, 33, 34, 35, 36, 37, 38)
-
-
39. A computer readable medium having computer executable instructions stored thereon for performing a method of estimating cardinality of a join of tables using multi-column density values histograms, the method comprising:
-
a) identifying a multi-column density over a set of attributes for each table;
b) identifying a histogram over an attribute from said set of attributes for each table;
c) aligning buckets of each histogram d) estimating for each bucket in a pair of aligned buckets a number of tuples from each table that participate in the join using densities of the buckets; and
e) estimating the cardinality of the join of a pair of buckets using the multi-column density for each table and the estimated number of tuples that participate in the join from each bucket in the pair of aligned buckets. - View Dependent Claims (40)
-
-
41. A computer readable medium having computer executable instructions stored thereon for performing a method of estimating cardinality of a join of tables using multi-column density values histograms, the method comprising:
-
a) identifying a multi-column density over a set of attributes for each table;
b) identifying a histogram over an attribute from said set of attributes for each table;
c) aligning buckets of each histogram;
d) identifying a number of tuples in each bucket of a pair of aligned buckets;
e) estimating the cardinality of the join of the pair of buckets using the multi-column density for each table, the density of each bucket of the pair of buckets, and the number of tuples in each bucket of the pair of buckets. - View Dependent Claims (42)
-
Specification