CACHE or NOCACHE Option

Use the CACHE option to specify the number of new sequence values that are preallocated in memory for rapid access. This option can enhance the performance of a sequence that grows quickly.

The cache size must be a positive whole number in the INT range. If you specify the CYCLE option, then size must be less than the number of values in a cycle (or less than |(max - min)/step|). The minimum is 2 preallocated values. The default is 20 preallocated values.

The NOCACHE keyword specifies that no generated values (that is, zero) are preallocated in memory for this sequence object.