Will the Id of a datastore entity ever be negative? Or are they guaranteed to be positive numbers?
+4
A:
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)
Peter Recore
2010-05-13 17:06:05
+1 for "should not be relied upon"
Jason Hall
2010-05-13 17:09:27
More than 'slightly' out of order - IDs are allocated to App servers in blocks of 1000, so you might get IDs in order 1001, 2001, 1002, 1003, ...
Nick Johnson
2010-05-13 19:02:19