Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Will the Id of a datastore entity ever be negative? Or are they guaranteed to be positive numbers?

like image 510
Kyle Avatar asked Dec 29 '22 17:12

Kyle


1 Answers

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)

like image 186
Peter Recore Avatar answered Jan 13 '23 14:01

Peter Recore