[appengine-java] Re: JDO Query ordering issue

2011-05-26 Thread WillSpecht
I think this is referring to the indexes needed to perform the query and not the sort orders needed. All you need to do is order only on score. As long as your indexes are updated your query should work fine. On May 26, 6:33 am, mscwd01 wrote: > The restriction I am referring to is mentioned >

[appengine-java] Re: JDO Query ordering issue

2011-05-26 Thread Brandon Donnelson
I was thinking of import com.google.appengine.api.datastore.Query; http://code.google.com/appengine/docs/java/datastore/queries.html I'm not sure that's going to help b/c of the restriction mentioned. The way I deal with it is use multiple query drill down and depending on size I'll send them in

[appengine-java] Re: JDO Query ordering issue

2011-05-26 Thread mscwd01
The restriction I am referring to is mentioned here: http://code.google.com/appengine/docs/java/datastore/jdo/queries.html Scroll down to "Query Sort Orders" where it says: Due to the way the App Engine datastore executes queries, if a query specifies inequality filters on a property and sort orde

[appengine-java] Re: JDO Query ordering issue

2011-05-25 Thread Brandon Donnelson
What restrictions are you referring? Have you tried the entity query class, the sort is a bit easier to set up. Query q = new Query("BlobTmpJdo"); q.addFilter("key", FilterOperator.EQUAL, fbd.getKey()); q.addSort("index"); Brandon Donnelson http://gwt-examples.googlecode.com