The following steps are used to calculate key-count for the INDEX BLOCK CONTAINS parameter of the CREATE INDEX statement:
( (Page-size - Page-reserve - 32) / 3 ) - 40 = SR8-variable-size
(SR8-variable-size / ( 8 + Key-length) ) - 2
If the resulting number of SR8 entries is less than 3, set it to 3; if greater than 8180, set it to 8180.
If both values are 0, use 1000.
Number of Rows Number of SR8 Entries
1,000 10
15,625 25
125,000 50
512,000 80
1,000,000 100
2,000,376 126
3,375,000 150
5,359,375 175
8,000,000 200
15,625,000 250
-1 8180
Use this value in the INDEX BLOCK CONTAINS key-count parameter of the definition and for IBC-key-count in calculations for DISPLACEMENT page-count.
|
Copyright © 2014 CA.
All rights reserved.
|
|