What about searching the uri lexicon?
From: [email protected] [mailto:[email protected]] On Behalf Of Ryan Dew Sent: Thursday, April 25, 2013 12:04 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] How to test whether doc exists fn:doc-available is pretty fast. On Apr 24, 2013 9:36 PM, "Tim Finney" <[email protected]> wrote: Hi All, What is the fastest way to test for existence of a document in the database? This is the fastest way I know: let $URI := "/path/to/doc.xml" return exists(doc($URI)) It takes about 75 us (microseconds) to return an answer according to the profile tab of qconsole. Best, Tim Finney _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
