Reputation: 271
When I try to run a query, I got the following error: Time limit exceeded
. I tried to increase request time limit to 8000 using the following code:
for .....
return ( xdmp:set-request-time-limit(8000), myquery)
I've got the following error XDMP-TIMELIMIT: xdmp:set-request-time-limit(8000) -- Request time limit exceeds the maximum allowed
.
The xdmp:set-request-time-limit
function requires one of the following priviliges:
http://marklogic.com/xdmp/privileges/xdmp-set-request-time-limit-any
Or
http://marklogic.com/xdmp/privileges/xdmp-set-request-time-limit-my
I'm facing a problem in setting these privileges. This is where I declare them:
for .....
return (xdmp:set-request-time-limit(8000), xdmp:privilege("http://marklogic.com/xdmp/privileges/xdmp-set-request-time-limit-any","execute"), myquery)
But I'm still getting the Request time limit exceeds the maximum allowed
error. I guess I'm declaring them in the wrong place. Any help
NOTES:
Upvotes: 0
Views: 414
Reputation: 7132
I suspect the app server whose screen shot you're sharing isn't the app server for QConsole port.
Upvotes: 2