Hi,

How can this be done efficiently with the current version of the GAE?

I suppose you could keep track of all events affecting scoring for the
last 24 hours.  Whenever you handle a request -- even one that does
not affect scoring -- you could prune out events older than 24 hours
and add a new one if the player has received more points as a result
of the current request.

As you take out old events and add in new ones, you also update the
top 10 ranking for the last 24 hours accordingly.

The problem here is that taking out all the old events can be quite
expensive.  As an extreme example, if you don't get any requests for
over 24 hours, then on the next request, you will need to clear out at
a day's worth of scoring events.

Amir


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