XQuery:设置权限以解决“请求时间限制超出允许的最大值”错误
问题描述:
当我尝试运行查询时,出现以下错误:Time limit exceeded
。我试着用下面的代码,以增加申请时限:XQuery:设置权限以解决“请求时间限制超出允许的最大值”错误
for .....
return (xdmp:set-request-time-limit(8000), myquery)
我有以下错误XDMP-TIMELIMIT: xdmp:set-request-time-limit(8000) -- Request time limit exceeds the maximum allowed
。
的xdmp:set-request-time-limit
功能需要以下特权时的一个:
http://marklogic.com/xdmp/privileges/xdmp-set-request-time-limit-any
或者
http://marklogic.com/xdmp/privileges/xdmp-set-request-time-limit-my
我在设置这些特权面临的一个问题。这是我宣布他们:
for .....
return (xdmp:set-request-time-limit(8000), xdmp:privilege("http://marklogic.com/xdmp/privileges/xdmp-set-request-time-limit-any","execute"), myquery)
但我仍然得到Request time limit exceeds the maximum allowed
错误。我想我是在错误的地方宣布他们。任何帮助
注:
答
我怀疑应用程序服务器,其屏幕截图你分享不是QConsole端口的应用服务器。
不,我从QConsole中的内容源下拉列表中选择了相同的服务器。 –
QConsole是一个Web应用程序。它运行在它自己的HTTP端口(8000)上。适用于发布到QConsole的请求的超时设置将为为QConsole端口(8000)配置的超时设置。 – hunterhacker