[MarkLogic Dev General] Is fn:doc-available() high performance, or should we use something else like cts:uri-match()?

Danny Sokolsky Danny.Sokolsky at marklogic.com
Thu Mar 1 13:25:25 PST 2012


xdmp:exists(fn:doc("/my/uri.xml"))

will be fast.

The uri lexicon functions are also a good choice.

-Danny



From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of David Swearingen
Sent: Thursday, March 01, 2012 1:15 PM
To: general at developer.marklogic.com
Subject: [MarkLogic Dev General] Is fn:doc-available() high performance, or should we use something else like cts:uri-match()?

We have a system with a million or so records.  When attempting to discern if a doc with a given uri is in the system, what's the fastest method?  Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20120301/a9cef056/attachment.html 


More information about the General mailing list