Thanks for your input, i already warn people going to the post to use shared counters. Btw do you have a simple example of it, and what if i want to count based on a query, say all blog post within july, how can i count it so that it could scale? Tnx again
On Nov 4, 2:41 am, Dan Sanderson <[EMAIL PROTECTED]> wrote: > See also the docs on fetch(limit, > offset):http://code.google.com/appengine/docs/datastore/queryclass.html#Query... > > In particular: "The query has performance characteristics that correspond > linearly with the offset amount plus the limit." > > -- Dan > > On Sun, Nov 2, 2008 at 8:23 PM, David Symonds <[EMAIL PROTECTED]> wrote: > > > On Sun, Nov 2, 2008 at 11:58 AM, monmonja <[EMAIL PROTECTED]> wrote: > > > > Now i don't know if this is the best way of doing it but it does not > > > require you to do some writing on datastore and it uses memcache, if > > > there is a better way of doing this please stress out. Thanks. :) > > > That's a terrible way of doing this: (a) possibly inaccurate, and (b) > > unscalable. The correct way to implement such a global counter is via > > something like a sharded counter that you increment each time you add > > an entity and decrement each time you remove an entity. > > > Dave. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
