However am I right in thinking that if I 'put' the entity then 'get' it straight away then a subsequent query will ALWAYS return it?
This behaviour seems to be the case in the dev app server and in production but I would like confirmation that this is guaranteed to happen.
What I want to clarify is if an entity will always be returned from a fetch by kind if it has previously been fetched by key.
This is what I experience in testing. I also remember reading that an entity's indexed properties are written to their respective indexes, if not done already, on its first fetch by key.
Therefore can you effectively get strong consistency by adding a fetch by key after adding an entity to the datastore?
Example 1:
1) Put entity A.
2) Query for entity A by kind. // This does not always return entity A due to the eventual consistency nature of the datastore.
Example 2:
1) Put entity B.
2) Fetch entity B by key.
3) Query for entity B by kind. // Always appears to return entity B.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.