On Mar 31, 2014, at 17:54, Reto Stöckli wrote:
Moreover, is this double search really necessary? It looks like the records can be returned already at the first search. In particular, when the search is to get more results for the same query (over the initial 100) the first search was already done before. So why doesn't this work:
- When availableResults and fetchedResults were both 0 (initial search for new search term), try to get the first MAX_RESULTS immediately, and update availableResults and fetchedResults from the returned data.
- When they're not 0 (i.e. get more for the same search) get the next batch of MIN(availableResultsLocal - fetchedResultsLocal, MAX_RESULTS), if that's bigger than 0.
From the docs it seems that the second case could be done more easily using the retrieve operation using the queryID, but in my tests the queryID never seems to be returned.
I'll check that double search issue before committing my code. Reto
I just tried this out with a single search, see the attached version, and it did work for me.
|
BDSKISIGroupServer.m
Description: Binary data
------------------------------------------------------------------------------
_______________________________________________
Bibdesk-develop mailing list
Bibdesk-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop