Just a note, if you only want to delete entities you do not even need
to fetch them first. Just generate a list of keys and pass them to
delete.
keys_to_delete = [Key('MyModel', i) for i in xrange(10)]
db.delete(keys_to_delete)
That will save you a fetch, improving performance quite a bit.
Rob
Thank you!. It works with "WHERE __key__ = Key('board_topic_entry',
20)".
:-)
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send emai
On Aug 18, 8:33 am, TZ wrote:
> The column "ID" is generated and filled with consecutive numbers
> automatically. True?
No. IDs aren't consecutive, and they're not in a "column"; the ID is
a part of the Key, not a property of the datastore entity (strictly
speaking, your actual properties aren