Hi Pete,
Yes, I've also tested this and the speed improvement is VERY
noticeable. With the way that the documentation explains the
difference between the HR datastores STRONG and EVENTUAL settings you
would assume that getting by the key value would be the same speed
because according to the documentation gets always return the most
recent data. You would assume that queries on the other hand would be
the thing that would have the time difference because queries with the
EVENTUAL setting can use the replicas (unless an ancestor query) and
could have stale results. So something else is going on here that
hasn't been explained. It seems due to the speed increase with
EVENTUAL consistency on that gets by key are using the replicas (or
possibly master if that's the closest datastore) to return the entity
instead of the master, so what it could be is that with STRONG
consistency on you always use the master for all datastore operations
even when doing a get by key even though it could be handled by a
nearby replica and with EVENTUAL consistency you always use the
closest datastore which could be a replica or the master. Or it could
be something entirely else. Hopefully an informed Googler could
explain the subtle differences a little better.
Stephen
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/apsAu6MR-BoJ.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>