python - Preventing db.get() from returning outdated records -
i working on app has users taking turns put()-ing data datastore, has id broadcast user via channel. sometimes, when users get(), it'll show previous user's changes. how can prevent this? there way have put() block until it's written?
take @ ancestor queries in docs.
https://developers.google.com/appengine/docs/python/datastore/structuring_for_strong_consistency
you seeing consistent results, although in case need consistent results.
Comments
Post a Comment