Sequence's current value advances to next 100 upon reconnection in derby

前端 未结 2 1500
清歌不尽
清歌不尽 2020-12-12 01:33

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

2条回答
  •  粉色の甜心
    2020-12-12 02:08

    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!

提交回复
热议问题