Hi :)

What could be the reason that following query works fine with "asc"
ordering and not with "desc" ???

Query query = pm.newQuery(Purchase.class);
query.setFilter("groupname == groupnameParameter");
query.declareParameters("String groupnameParameter");
query.setOrdering("date asc");

in the log of the gae i read the following exception when i run the
code with descending ordering :

com.google.appengine.api.datastore.DatastoreNeedIndexException: no
matching index found..      <datastore-index kind="Purchase"
ancestor="false" source="manual">
        <property name="groupname" direction="asc"/>
        <property name="date" direction="desc"/>
    </datastore-index>

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