cancel
Showing results for 
Search instead for 
Did you mean: 

query performance, RepositoryServiceSoapPort.fetchMore()

multi_io
Champ in-the-making
Champ in-the-making
What's the best way to deal with queries that may return thousands of result rows? Or should those be avoided altogether? I have a simple cm:folder here that contains some 15,000 children, and a RepositoryServiceSoapPort.queryChildren(theFolder) causes the client to time out and close its end of the socket after a minute; after 5:30 min or so, the server apparently tries to write back a result and, obviously, fails.

I see that there is a "fetchMore(String querySession)" method in RepositoryServiceSoapPort, but I can't figure out how to use it to fetch the results in more than one network roundtrip – QueryResult has a querySession field, but when (and if) the QueryResult is returned it already contains all the result rows, no?

I wouldn't mind if large queries take longer to complete, but it should at least be possible to do complete them somehow. Do you have to use the query(store,query,includeMetaData) for more advanced use cases like this?

Thanks in advance.
1 REPLY 1

nuga
Champ in-the-making
Champ in-the-making
http://forums.alfresco.com/viewtopic.php?t=5599&highlight=fetchmore

BUMP because i am wondering the same thing as well