Try cts:element-values with the 'map' option, and a query if desired. This still implies iteration over a sequence to find any missing values, but it uses one big lookup up front. This will make the each value lookup much faster, because it can use map:get instead of a database lookup.
-- Mike On Feb 8, 2013, at 6:19, Paul M <[email protected]> wrote: > 4 documents: docA, docB, docC, docD. Each have a unique id field with values: > 111, 222, 333, 555 respectively. I have a sequence 111,222,333,444. 444 does > not exist in the document set docA, docB, docC, docD. Is there a faster way > of finding this information. I have looked at a few cts functions but I keep > coming back to recurse through each sequence 111,222,333,444 and do > xdmp:estimate cts:search cts:element-value-query on each value. Fast, but > still takes time. Maybe co-occurrence, if data has multiple id fields? > 111-aaa,222-bbb,333-ccc,555-eee > > thanks > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
