When using allocateIds(), how long do unused IDs remain allocated?

三世轮回 提交于 2019-12-11 04:55:22

问题


Assuming the IDs have not been used by calling put() for an Entity. How long would the allocated IDs stick around for? Are they ever put back into use by datastore? Or are they allocated forever?


回答1:


The documentation says,

These keys are guaranteed not to have been returned previously by the data store's internal ID generator, nor will they be returned by future calls to the internal ID generator.

I'll go out on a limb and say that the use of 'guarantee' and 'future' above means forever.



来源:https://stackoverflow.com/questions/40768129/when-using-allocateids-how-long-do-unused-ids-remain-allocated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!