>
> apply-in-new-transaction-invoker.xqy:
> ---------------------------------------------
> declare namespace aint = "apply-in-new-transaction";
>
> declare option xdmp:update "true";
>
> declare variable $aint:function as xdmp:function external;
> declare variable $aint:params as item()* external;
>
> xdmp:apply($aint:function, $aint:params)
>

I would try to avoid this technique. Imagine a new MarkLogic developer comes
on board and does not know the difference between queries and updates in
MarkLogic (in my experience the likelihood of this happening is high). He
might start using <<apply-in-new-transaction>> not knowing that he is using
read/write locks instead of multi version concurrency control for his
updates.

Nuno
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to