Websphere ECKeyManager getNextKey 随机性
假设我有一个表,我运行以下命令:
Long key = ECKeyManager.singleton().getNextKey("my_table");
我的问题是
LOWERBOUND=100,
UPPERBOUND=999
:如果我按顺序运行两次,返回的“键”在边界内是连续的还是“随机”的?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它取决于为键表中的表配置的预取大小和计数器值。预取大小将是检索到的起始值,下一个值将是“预取大小+计数器”值
更多阅读相同内容:
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
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