
Internal Rules for Update Statistics
This algorithm is used by BRCONNECT to update statistics. For more information, see
Update Statistics with BRCONNECT.
BRCONNECT uses the following standard method to check and update a table's statistics:
The following table describes the default method:
|
Number of rows in table |
Analysis method |
Sample size |
||
|
Rows |
< 10,000 |
C |
||
|
10,000 <= |
Rows |
< 100,000 |
E |
P30 |
|
100,000 <= |
Rows |
< 1,000,000 |
E |
P10 |
|
1,000,000 <= |
Rows |
< 10,000,000 |
E |
P3 |
|
10,000,000 <= |
Rows |
E |
P1 |
|
Analysis method C means compute the statistics exactly. Analysis method E means estimate the statistics using the sample size specified.
For example, "E P10" means that BRCONNECT takes an estimated sample using 10% of rows.
For the
CH, CX, EH, and EX methods, histograms are created.For the
CI, CX, EI and EX methods, the structure of indexes is validated in addition to collecting statistics.The standard threshold is 50, but the value defined in -f stats -change or the stats_change_threshold parameter is used if specified.