Bug fixed: queries exceeding output size limit
Posted by mholmes on 16 Nov 2011 in Activity log
The default output size limit for an XQuery is 10000. When requesting a list of "Mentions of this place in the documents" when the place is Vancouver Island, an error was occurring because this limit was exceeded. I've fixed this in two ways:
- First, as a general principle, we want to allow larger result sets across all XQuery operations, so I modified the following line in WEB-INF/conf.xml to change 10000 to 20000:
<watchdog output-size-limit="20000" query-timeout="-1"/>
That change apparently does not take effect until the server is restarted. However, I didn't want or need to restart the server to fix the bug right now, because of #2. - You can specify the output size limit inside an XQuery file, so I've included this in the
getRefs.xq
file to solve the immediate problem:declare option exist:output-size-limit "20000";
If similar problems show up in future, we can make further increases.