开发者

Google App Engine - Will the Id of a datastore entity ever be negative?

开发者 https://www.devze.com 2022-12-30 18:30 出处:网络
Will the Id of a datastore entity ever be negative? Or are they guaranteed to be positi开发者_开发知识库ve numbers?I cannot find a doc stating it explicitly, but I have never seen one that is negative

Will the Id of a datastore entity ever be negative? Or are they guaranteed to be positi开发者_开发知识库ve numbers?


I cannot find a doc stating it explicitly, but I have never seen one that is negative. The docs do say that id's generally increase as new entities are created. (But they should not be relied upon to be strictly so, as you might get id's slightly out of order, like 10,11,13,12,14)


No.

More text to make SO happy with my answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消