Hi Oliver,

Doing a get() for a specific key is definitely much faster than doing
a query, even if that query only returns one entity.  As an example,
take a look at the System Status page for gets:
http://code.google.com/status/appengine/detail/datastore/2009/05/26#ae-trust-detail-datastore-get-latency
and the one for queries:
http://code.google.com/status/appengine/detail/datastore/2009/05/26#ae-trust-detail-datastore-query-latency
. Gets average 20-40ms, while queries average 150-200ms.

-Nick Johnson

On Fri, May 22, 2009 at 10:51 AM, Oliver Zheng <[email protected]> wrote:
>
> Hi Jason,
>
> On May 12, 5:12 pm, "Jason (Google)" <[email protected]> wrote:
>> [...] thereby improving the performance of your application [...]
>
> What is the extent of this? I suppose you mean that if you know the
> key, you can construct an object and save it to datastore by
> overwriting it, without first querying for that object.
>
> But beyond that, is there performance improvement to querying with a
> key instead of another field that is also indexed?
>
> Thanks,
> Oliver
> 

--~--~---------~--~----~------------~-------~--~----~
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