Changes

Jump to navigation Jump to search
768 bytes added ,  11:26, 26 June 2016
no edit summary
|-
| '''Errors'''
|{{Error|BXXQ0001|#Errors}} the query contains [[XQuery Update#Updating Expressions|updating expressions]].<br/>{{Error|BXXQ0003|#Errors}} insufficient permissions for evaluating the query.<br/>{{Error|BXXQ0004|#Errors}} query execution exceeded timeout or memory limit.<br/>{{Error|FOTY0013BXXQ0005|#Errors}} the expression yields function itemsnested query evaluation is not allowed.<br/>Any other error that may occur while evaluating the query.
|-
| '''Examples'''
|-
| '''Errors'''
|{{Error|BXXQ0002|#Errors}} the query contains no [[XQuery Update#Updating Expressions|updating expressions]].<br/>{{Error|BXXQ0003|#Errors}} insufficient permissions for evaluating the query.<br/>{{Error|BXXQ0004|#Errors}} query execution exceeded timeout or memory limit.<br/>{{Error|FOTY0013BXXQ0005|#Errors}} the expression yields function itemsnested query evaluation is not allowed.<br/>Any other error that may occur while evaluating the query.
|}
|-
| '''Errors'''
|{{Error|BXXQ0001|#Errors}} the expression contains [[XQuery Update#Updating Expressions|updating expressions]].<br/>{{Error|BXXQ0003|#Errors}} insufficient permissions for evaluating the query.<br/>{{Error|BXXQ0004|#Errors}} query execution exceeded timeout.<br/>{{Error|FOTY0013BXXQ0005|#Errors}} the expression yields function itemsnested query evaluation is not allowed.<br/>Any other error that may occur while evaluating the query.
|}
==xquery:typefork-join==
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|xquery:typefork-join|$expr functions as itemfunction(*)*|item()*}}
|-
| '''Summary'''|Similar This function executes the supplied (non-updating) functions in parallel.|-| '''Examples'''|* The following function sleeps in parallel; it will be finished in 1 second if your system has at least 2 cores:<pre class='brush:xquery'>xquery:fork-join( for $i in 1 to 2 return function() {prof:sleep(1000) })</pre>* In the following query, up to four URLs will be requested in parallel:<pre class='brush:xquery'>let $funcs := for $segment in 1 to 4 let $url := 'http://url.com/path' || $segment return function() {Code|fnhttp:tracesend-request((), $expr, url) }return xquery:fork-join($msgfuncs)</pre>|-|'''Errors'''|{{Error|unexpected|#Errors}}, but instead of an unexpected error occurred while running a query or function in a user-defined message, it emits the compile-time type and estimated result size of its argumentseparate thread.
|}
|{{Code|BXXQ0004}}
|Query execution exceeded timeout or memory limit.
|-
|{{Code|BXXQ0005}}
|Nested query evaluation is not allowed.
|}
;Version 8.5
* Added: [[#xquery:fork-join|xquery:fork-join]]
* Updated: [[#xquery:eval|xquery:eval]]: {{Code|base-uri}} option added
* Updated: Relative URIs will always be resolved against the static base URI of the query
* Deleted: xquery:type (moved to [[Profiling Module]]
;Version 8.4
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu