xdmp:set-request-time-limit( $time-limit as xs:unsignedInt, [$hostID as xs:unsignedLong?], [$serverID as xs:unsignedLong?], [$requestID as xs:unsignedLong?] ) as empty-sequence()
Changes the time limit for an actively running request to the specified value. If you do not supply values for the last three parameters, the function sets the time limit for the current request.
http://marklogic.com/xdmp/privileges/xdmp-set-request-time-limit-any
or
http://marklogic.com/xdmp/privileges/xdmp-set-request-time-limit-my
xdmp:set-request-time-limit(10000)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.