Problem in ID generation and Allocation Size

View: New views
2 Messages — Rating Filter:   Alert me  

Problem in ID generation and Allocation Size

by nishitv02 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 If I understand correctly EclipseLink implements sequencing in the following way : Sequencing is implemented such that EclipseLink will reserve the current sequence number and the next X sequence numbers; X being the sequence allocation size.

I changed the allocation Size in the local database and Id generation was working fine.

I changed the allocation Size on some other databse and the Id generation was not correct and this problem could only be reproduced sometimes.

I looked at the definition of sequences in all those databases and they were the same.

What can be the cause of the problem.

Re: Problem in ID generation and Allocation Size

by James Sutherland :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ensure that you SEQUENCE object's INCREMENT matches your sequence preallocation size.

You can turn logging on FINEST to have detailed sequencing info logged.

nishitv02 wrote:
 If I understand correctly EclipseLink implements sequencing in the following way : Sequencing is implemented such that EclipseLink will reserve the current sequence number and the next X sequence numbers; X being the sequence allocation size.

I changed the allocation Size in the local database and Id generation was working fine.

I changed the allocation Size on some other databse and the Id generation was not correct and this problem could only be reproduced sometimes.

I looked at the definition of sequences in all those databases and they were the same.

What can be the cause of the problem.