Preallocating Sequence Numbers

To increase the speed of database inserts, obtain a block of sequence numbers (by setting an allocation size) instead of executing a corresponding SELECT statement to obtain the newly assigned sequence number each time you create an object.

TopLink uses a default preallocation size of 50 when using a sequence table and 1 when using native sequencing.


Related Topics

About TopLink Descriptors

Working with Descriptors
Setting Descriptor Information
Using Sequence Numbers with Entity Beans
Using Native Sequencing
Working with Sequencing
Creating the Sequence Table on the Database

 

Copyright © 1997, 2004, Oracle. All rights reserved.