[MarkLogic Dev General] Timing issue : can't find document right after document-insert
Geert Josten
geert.josten at dayon.nl
Tue Jun 26 08:13:42 PDT 2012
Hi Danny,
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.
Kind regards,
Geert
*Van:* general-bounces at developer.marklogic.com [mailto:
general-bounces at developer.marklogic.com] *Namens *Danny Sinang
*Verzonden:* dinsdag 26 juni 2012 17:01
*Aan:* general
*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
document.
T2 is a few milliseconds apart from T1.
if we run the ML script again a few seconds later, it succeeds in finding
the document.
What could be causing this behavior ?
Regards,
Danny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://community.marklogic.com/pipermail/general/attachments/20120626/63db6f55/attachment-0001.html
More information about the General
mailing list