[google-appengine] Re: Finding out if a key is in the datastore

2009-06-16 Thread Nick Johnson (Google)
Hi n8gray, There's currently no support for an 'exists' operation. A key only query as bd_ describes would work, but I would expect the execution time for such a query to be at least as long as a simple get(). Unless your entity is exceptionally large, a straightforward get() is likely to be only

[google-appengine] Re: Finding out if a key is in the datastore

2009-06-15 Thread bd_
On Jun 15, 4:42 pm, n8gray wrote: > Hi folks, > > Is there a way to find out if a key refers to an entity in the > datastore without retrieving it?  Something like myKey.exists() would > be nice, but I don't see it in the docs. Perhaps do a GQL query along the lines of: SELECT __key__ WHERE __