Created
April 25, 2018 13:11
-
-
Save ableasdale/b550c8a505901f9db701151e028ac1a1 to your computer and use it in GitHub Desktop.
MarkLogic: Read a doc as a variable, perform and insert then retrieve the doc in a separate statement
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 $read := fn:doc("/for-read-lock.xml") | |
return | |
xdmp:document-insert("/thread-2-output.xml",element root{"Thread 2 finished",element elapsed-time{xdmp:elapsed-time()}}) | |
; | |
fn:doc("/thread-2-output.xml") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment