Created
April 25, 2018 13:07
-
-
Save ableasdale/4b6524a43616f2d2423b7cbe83237a4c to your computer and use it in GitHub Desktop.
MarkLogic: read doc and perform an insert, then read another doc in a separate transaction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let $sleep-time-seconds := 20 | |
let $read := fn:doc("/for-read-lock.xml") | |
let $_ := xdmp:document-insert("/thread-1-output.xml",element root{"Thread 1 finished"}) | |
return | |
xdmp:sleep($sleep-time-seconds * 1000) | |
; | |
fn:doc("/thread-1-output.xml") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment