Do some of the entities share a common parent? Writes to entities within a group are serialized and if there is too much contention on a group writes to its members will fail.
Michael On Feb 18, 3:41 pm, Nikola <ntos...@gmail.com> wrote: > I am trying to go through all entities of a kind, using the __key__ > property. I take 10 at a time, and run threads in parallel to do > something and then update these entities (I am doing this via > remote_api). What I often get is: > > TransactionFailedError: too much contention on these datastore > entities. please try again. > > How is this possible? I thought the datastore uses optimistic > concurrency based on timestamps of individual records, not pages of > adjacent entities? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---