Entities always have a key, available as entity.key(). In addition to
that, you can set a friendly key at construction only (can't be
changed or set later), using key_name. If you do not however set a
key_name, app engine will assign a numeric id, available as
entity.key().id().
In other words,
Exactly my thought... One cannot assume that the keys are in ascending order
or Can we ?
On Thu, Sep 25, 2008 at 7:42 AM, Tony Arkles [EMAIL PROTECTED] wrote:
Thomas, I think that solution will only work if the items are being
returned such that their keys will be in ascending order (which in
You definitely can not.
From http://code.google.com/appengine/docs/datastore/keysandentitygroups.html:
An application should not rely on numeric IDs being assigned in
increasing order with the order of entity creation. This is generally
the case, but not guaranteed.
On Sep 25, 10:41 am,