Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Florent Georges
On 8 December 2014 at 19:01, Frank Mortier wrote: > $doc/b/c[@xml:lang eq"nl"] By the way, do not use string comparison directly against @xml:lang, use fn:lang() instead: $doc/b/c[lang('nl')]. Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ ___

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Frank Mortier
--Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: 08 December 2014 19:48 To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsist

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Michael Gursky
- > From: general-boun...@developer.marklogic.com [mailto: > general-boun...@developer.marklogic.com] On Behalf Of Frank Mortier > Sent: Monday, December 08, 2014 10:38 AM > To: MarkLogic Developer Discussion > Subject: Re: [MarkLogic Dev General] Marklogic node replace of same

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Danny Sokolsky
c Developer Discussion Subject: Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output Thanks Danny, I need to get from the string ('auto, kind') to ('auto', 'kind'). Chris, it should return 'car' and 'child&#

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Frank Mortier
l Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: 08 December 2014 19:15 To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output H

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Tim
:02 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output Given the following doc: let $doc := car auto

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Whitby, Rob
4 18:01 To: MarkLogic Developer Discussion mailto:general@developer.marklogic.com>> Subject: Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output Given the following doc: let $doc := car

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Danny Sokolsky
amlin Sent: Monday, December 08, 2014 10:14 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output Hi Frank, Not exactly sure if it's what you want, but maybe helps you get closer: for $x in $d

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Christopher Hamlin
Hi Frank, Not exactly sure if it's what you want, but maybe helps you get closer: for $x in $doc/b/c[@xml:lang eq"nl"] where $x/fn:string() = fn:tokenize('auto, kind', ',') return $x/../@id/fn:string() returns 'car'. I changed it so it compares the string value of $x with a

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Frank Mortier
Given the following doc: let $doc := car auto voiture house huis maison

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Raghu
Hi Ron, 1) An update request does not see its own updates. Fetching the value of something from the database after an update to that thing will return the value from the database as-of the time the request started running. - I totally agree Ron, I'm checking the value by exploring the da

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Ron Hitchens
Two things of note: 1) An update request does not see its own updates. Fetching the value of something from the database after an update to that thing will return the value from the database as-of the time the request started running. 2) It is possible for deadlocks to occur, especially in

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Raghu
I've used two different browsers for each qconsole, yet the same results. On Mon, Dec 8, 2014 at 8:49 PM, Raghu wrote: > Thanks David Ennis, > > PFB the response below > > 1. The second xquery doesn't have a sleep, that was a copy paste error on > my part. > 2. I'm verifying the document content

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Raghu
Thanks David Ennis, PFB the response below 1. The second xquery doesn't have a sleep, that was a copy paste error on my part. 2. I'm verifying the document content by using the qconsole explore button and clicking on the link. 3. The sleep would not lock, but the node replace statement in the xqu

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread David Ennis
HI. I don't have a full answer, but a few pointers: - Your xquery2 is the same as xquery1 (includes sleep). This is probably not what you meant to include as it does not match your description where you say that there si no sleep on xquery2 - In the same statement you update the node and also r

[MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Raghu
Hi all, I have two xqueries xquery# 1. Sleeps for 10 secs (xdmp:sleep) and updates an existing node with a new value and logs the value "Executing #1". xquery# 2. Updates the same node which is being updated in xquery #1 but no sleep and logs the value "Executing #2". I am ex