db.Key is the type of the key, not the numeric ID; the ID is an
integer.  I believe they're limited to 64 bits, the same as an
IntegerProperty.

Note that a key isn't required to have a numeric ID; it could have a
key name instead.  And IDs aren't unique across the datastore; only
within a Kind for entities with the same parent.

On Jul 27, 4:15 pm, Giacecco <[email protected]> wrote:
> Dear all, I have searched the answer to this in the group and in the
> FAQ but was not successful, although it seems quite a trivial
> question: what's the max numeric id I could find in the datastore if I
> kept adding data to it?
>
> I need to base part of my algorithms on the key numeric value, so I
> need to know what I can expect from it: min, max values etc.. The
> documentation says that it is of type "db.key" but nothing more than
> that. And, even knowing its type, are there any logic constraints to
> its value that I should know about?
>
> Am I missing something perhaps?
>
> Thanks!
>
> Giacecco

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to