Dear List,

I would like to use the xdmp:apply(xdmp:function(), ...) pattern in an
application. The functionality is mainly read-only, where an
unprivileged role (app-user) is allowed to search and display documents
in a database. However, I would also like to record user search strings
and to store feedback and errors in database documents. I would prefer
to always run the application as a query statement to avoid the
performance hit of running as an update transaction.

Is there a way to run as a query statement and also allow the app-user
role to write to the database when using the
xdmp:apply(xdmp:function(), ...) pattern? How much of a performance hit
is incurred by running as an update? I have tried using an amped
function to log feedback as a distinct transaction but get a
"XDMP-UPEXTNODES Cannot update external nodes" error.

Best,

Tim Finney


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to