> Why do you have to update the report document each time you get a hit? > How many documents do you expect to match--10, 1000, 100000? I am > blissfully ignorant of CORB, so maybe (probably...) I am looking at this > naively, but it seems like you might be able to do this all in XQuery.
The problem is that the scope of the search is so large that we simply cannot process it from within a single execution which hits all documents. I hadn't thought about using xdmp:spawn. > I am thinking maybe break it up into batches of, say, 1000 documents, > then spawn the update to the report for each 1000 hits. If you can > constrain your cts:uri-match with a cts:query that could make it so you > don't have to look at every document, that would help too. Here is > pseudo-code of what I mean: Sure, we do use cts:uri-match to restrict the hits. Using a technique to spawn queries isn't something I had considered doing, I'll look into that. Thank you! JIm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - James A. Robinson [email protected] Stanford University HighWire Press http://highwire.stanford.edu/ +1 650 7237294 (Work) +1 650 7259335 (Fax) _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
