Hi all

I have a update job which search for documents matching criteria and then
insert or delete a node in the matching docs. I know that if search and
update is in same transaction it causes lock problems. So search return URI
of the docs and in second request I do fn:doc and node insert or replace.
Which seems to be working.  I have below questions

1. How other people are handling search and update ? Is there any other way?
2. Does the XPATH search and replace also cause locking problem? for
example xdmp:node-replace(/root/old-node, $new-node)
3. Is it good idea to perform search and do the update in xdmp:eval with
different-transaction ?


Thanks & regards,
Ravi
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to