Hi Stu,

This is a good question. exists(doc) does seem to put a read lock on the 
doc. I don't know how to find out which functions put read or update 
locks on a doc but would like to know.

Best,

Tim

On 04/25/2013 11:10 PM, [email protected] wrote:
> Date: Thu, 25 Apr 2013 07:44:53 -0700
> From: Stu Salsbury<[email protected]>
> Subject: Re: [MarkLogic Dev General] How to test whether doc exists
> To: MarkLogic Developer Discussion<[email protected]>
> Message-ID:
>       <CACi3uCtTDy1VgTs8J+zH1QH_fjoKD1diH+jMbE+6_v8=pdf...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Concerning:
>
> exists(doc($URI)): 80 us (microseconds)
> doc-available($URI): 200 us
>
> Would the first option (using doc($URI)) put a read lock on the file?  And
> the second not?  Just wondering about side effects of the test.

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to