[google-appengine] Re: usercount

2009-02-25 Thread Takashi Matsuo
Perhaps you could consider using memcache API instead of Datastore property. Just my 2 cents. -- Takashi Matsuo On Tue, Feb 24, 2009 at 5:13 PM, Brandon Thomson wrote: > > One way is to store a "lastSeen" datetime property for each user in > some kind of user entity in your data model and the

[google-appengine] Re: usercount

2009-02-24 Thread niklas
Thanks There's a django-tracking project saying it has the mentioned function http://code.google.com/p/django-tracking/ It probably only works with the django request handler and not the pure gae webapp. Regards, Niklas On Feb 24, 3:53 pm, Mahmoud wrote: > You can also make your clients send aja

[google-appengine] Re: usercount

2009-02-24 Thread Mahmoud
You can also make your clients send ajax hearbeats every so often. The heartbeat call would update the last_seen property. On Feb 24, 3:13 am, Brandon Thomson wrote: > One way is to store a "lastSeen" datetime property for each user in > some kind of user entity in your data model and then do a

[google-appengine] Re: usercount

2009-02-24 Thread Brandon Thomson
One way is to store a "lastSeen" datetime property for each user in some kind of user entity in your data model and then do a query to find how many were seen in the last 10 minutes or so. I don't recommend counting active http requests since the answer will be 0 most of the time. Requests don't