Default Derby logic for determining how many values to pre-allocate for an identity column or sequence.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static final int | DEFAULT_PREALLOCATION_COUNT
Default number of values to pre-allocate. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | nextRangeSize(String
Name of schema holding the sequence. schemaName, String Specific name of the sequence. sequenceName)Implements org. This method returns the size of the next pre-allocated range for the specified sequence. |
| _rangeSize | back to summary |
|---|---|
| private int _rangeSize | |
| DEFAULT_PREALLOCATION_COUNT | back to summary |
|---|---|
| private static final int DEFAULT_PREALLOCATION_COUNT Default number of values to pre-allocate. Other databases use a preallocation size of 20 (see DERBY-4437). We boosted this to 100 in order to get better concurrency, after fixing correctness problems in pre-allocation (see DERBY-5493). | |
| SequenceRange | back to summary |
|---|---|
| public SequenceRange() 0-arg constructore needed to satisfy the SequencePreallocator contract. | |
| SequenceRange | back to summary |
|---|---|
| public SequenceRange(int rangeSize) | |
| nextRangeSize | back to summary |
|---|---|
| public int nextRangeSize(String schemaName, String sequenceName) Implements org. Doc from org. This method returns the size of the next pre-allocated range for the specified sequence. Names are case-sensitive, as specified in CREATE SEQUENCE and CREATE TABLE statements. | |