On Jun 15, 4:42 pm, n8gray <[email protected]> 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 __key__ = :1
I'm not sure if this will avoid the cost of the get, but it seems
logical at least - one would need to grovel through the SDK source a
bit to conclusively determine if it has that optimization though.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---