Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有一张桌子,我运行以下命令:
Long key = ECKeyManager.singleton().getNextKey("my_table");
在哪里
LOWERBOUND=100, UPPERBOUND=999
我的问题是:如果我按顺序运行两次,返回的“键”是连续的还是“随机”的?
它取决于为键表中的表配置的预取大小和计数器值。prefetchsize 将是检索的起始值,下一个值将是“prefetchsize+counter”值
更多阅读: 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