On Aug 19, 5:00 am, PSL <psl.appengine.test.acco...@gmail.com> wrote:
> Hi,
> I want to implement aggregate functions like sum and avg in Java in
> Google App Engine.

I don't know a good way to acomplish this in GAE right now.
I think that having Asychronous URL fetches is one way that this could
be done (this is a feature in the Python GAE API but not in the Java
API).
This feature would allow you to create a servlet that will calculate
functions over a range of records.
Then your method could break the job of calculating the function into
jobs of 10000 records each.
For example, for 50000 rows your method wouold issue 5 asychronous
calls to the servlet that calculates the function, each call specifies
a range a rows.
Then the method would collection the result from each call and return
the total.


I have created a feature request for adding the Asychronous URL fetch
to the Java API.
Please go and 'star' this issue....
http://code.google.com/p/googleappengine/issues/detail?id=1899


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to