App Engine's JDO implementation does not currently support subqueries, no. The only aggregate function that you can use is count, but this only works if you have 1,000 or fewer entities in the datastore. The more reliable (and scalable) way of computing aggregate values is at write time as Marcel says. So if you know you'll need the number of entities of a particular kind, say, then you can keep a counter in the datastore and increment it every time you persist a new entity of that kind. Then, when the count is needed, the value is already available. You can do this in a similar way for the other aggregate functions. - Jason
On Tue, Sep 22, 2009 at 2:38 AM, rams <[email protected]> wrote: > > hi > > i want to know that > > does java app engine has a support for subqueries in jdo ? > does java app engine has a support for aggregate functions of jdo? > > if it supports please send me one example on subqueries in jdo. > > if it doesn't has support for aggregate function then how to manage > queries that contains aggregate functions? > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [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-java?hl=en -~----------~----~----~----~------~----~------~--~---
