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.
___
General mailing list
General@developer.marklogic.com
@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
: [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
Discussion
Subject: Re: [MarkLogic Dev General] Is fn:doc-available() high performance, or
should we use something else like cts:uri-match()?
It looks to me like doc-available($uri) is equivalent to xdmp:exists(doc($uri))
now. Either expression results in a simple list-cache lookup, with no tree