Hello all -

  New to python world but i'm having a go at it.

  I'm trying to figure out the best approach to do some report
generation.  Wondering if there are some best practices that may
apply.


  I have a table where votes are cast.  Each vote is for a station, so
it has the stationId and the datetimestamp when it was cast.

  I want to calculate the # of votes each station had over the
previous 2 hours.

  So I am going to use a task queue item.   When the task queue item
starts, it loads its previous state (the start time / end time of the
period to calculate for & the index of the vote it last counted).
It loads 1000 votes at a time starting with the first from the
period.   It calculates totals and writes them to a sep. table at the
end of 1000 votes, or when the DeadlineExceededExeption is thrown.

Does this sound like a reasonable approach?

 Should I be saving my scratch into the DataStore or into a memcache?
(Is there enough time to write to Datastore after I get a
DeadlineExceededExeption?)

Thank you-
Matt

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