On Jul 13, 5:43 pm, Bill <[email protected]> wrote:
> The reason sharding works to reduce contention is that the each shard
> is in a separate entity group.  Within the transaction, one
> GeneralCounterShard entity is either retrieved or written.  Each shard
> forms its own entity group, which is what you want so there's no
> contention on writes.

Ah, of course!  My mind somehow mixed up the code that increments a
single shard and the code that loops over all the shards to read their
values.  Thanks for setting me straight.

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