[MarkLogic Dev General] Timing issue : can't find document right after document-insert
geert.josten at dayon.nl
Tue Jun 26 08:13:42 PDT 2012
The calls are executed in parallel. T1 hasn’t fully finished, so T2 starts
with a timestamp of before T1. You could do a single call, and combine both
requests as one, separating the xquery code with a semi-colon. That causes
the second part to be executed only after the first has fully finished.
*Van:* general-bounces at developer.marklogic.com [mailto:
general-bounces at developer.marklogic.com] *Namens *Danny Sinang
*Verzonden:* dinsdag 26 juni 2012 17:01
*Onderwerp:* [MarkLogic Dev General] Timing issue : can't find document
right after document-insert
We seem to be running into a timing issue. It goes like this :
T1 : Java calls ML to insert an XML document via xdmp:document-insert() .
T2 : Java calls ML script to look for the inserted document. Can't find
T2 is a few milliseconds apart from T1.
if we run the ML script again a few seconds later, it succeeds in finding
What could be causing this behavior ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the General