I am having an issue with derby sequences with embedded database. When I first connect to the data base it gives me the correct sequence next value with the following statem
According to https://db.apache.org/derby/docs/10.9/ref/rrefproperpreallocator.html, yes there is a sequence preallocator:)
In configuration just enter:
derby.language.sequence.preallocator=number
where number is a prealocated number of sequences OR
derby.language.sequence.preallocator=className
where className leads to a class implementing SequencePreallocator if you want some more advanced sequence alocation...
Hope it helps!