Hello,

I keep getting periodic ApiDeadlineExceededException on a JDO Query on a 
back end. 

Here's the code chunk: 

                NamespaceManager.set(domain);
PersistenceManager pm = GServ.getPM();
Query approvedObjects = pm.newQuery(DomainObject.class);
approvedObjects.setFilter("docsEnabled == true && mode == thisMode");
approvedObjects.declareParameters("String thisMode");
List<DomainObject> attached = (List<DomainObject>) 
approvedObjects.execute(config.getMode());
List<DomainObject> detached = (List<DomainObject>) 
pm.detachCopyAll(attached);
pm.close();

As you can see, I'm querying on the class DomainObject with 2 filters. The 
issue is, in the Namespace its querying on, there are no DomainObjects so 
I'm confused as to why I'm exceeding the deadline when there is nothing to 
query on.

Here's the whole error I'm getting: 

        com.google.apphosting.api.ApiProxy$ApiDeadlineExceededException: 
The API call datastore_v3.RunQuery() took too long to respond and was 
cancelled.

Thanks,
Corry

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/dlirstfep7MJ.
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