문제

Say that I have a table and I run the following:

Long key = ECKeyManager.singleton().getNextKey("my_table");

Where

LOWERBOUND=100,
UPPERBOUND=999

My question is: If I run this two times in sequence, will the returned 'keys' be sequential or 'random' withing the bounds?

도움이 되었습니까?

해결책

It depends on the prefetchsize and counter values configured for the table in keys table. The prefetchsize would be the starting value that is retrieved and the next value would be the "prefetchsize+counter" value

More reading on the same:
http://publib.boulder.ibm.com/infocenter/wchelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.commerce.database.doc%2Fdatabase%2Fkeys.htm&resultof=%22KEYS%22%20%22kei%22

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top