Sorry if I'm wrong, but I guess that this is the same problem I was facing a few days ago. I solved my problem using a *batch size*, and iterating until the batch size limit.
The JDO iterator is using the same "datastore operation", and thus have a time limit to perform your query. Your loop is issuing other operations (the delete() method) that is making your it.next() fails event if there are small datasets. I've read from other threads that the deletes are even expensive than the writes. Try this one: fetch all keys first, then loop over them. If you call "size()" from the returned List, it will fetch all keys. Be carefull to set a reasonable resultset limit: I guess that a 10k betch size is good for your query, at least on my results. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/T1lzQ2tveUoya3NK. 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.
