2016-07-15 24 views
0

當我嘗試運行查詢時,出現以下錯誤: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錯誤。我想我是在錯誤的地方宣佈他們。任何幫助

注:

  • 的截圖顯示了我的HTTP服務器設置。 server settings
  • 默認的用戶是誰
  • 我使用Qqonsole運行查詢

回答

2

我懷疑應用程序服務器,其屏幕截圖你分享不是QConsole端口的應用服務器。

+0

不,我從QConsole中的內容源下拉列表中選擇了相同的服務器。 –

+0

QConsole是一個Web應用程序。它運行在它自己的HTTP端口(8000)上。適用於發佈到QConsole的請求的超時設置將爲爲QConsole端口(8000)配置的超時設置。 – hunterhacker

相關問題