Changes

Jump to navigation Jump to search
109 bytes removed ,  09:21, 8 April 2021
| '''Summary'''
|This option controls the unroll limit:
* Loop Loops with few iterations are *''unrolled* '' by the XQuery compiler to enable further optimizations.* For exampleIf the limit is increased, more optimizations will take place, <code>(1 to 2) ! (but the memory consumption and compile time will increase. * 2)<See [[XQuery Optimizations#Loop Unrolling|Loop Unrolling]] for more details.|} ===ENFORCEINDEX=== {| width='100%'|-| width='120' | '''Signature'''|{{Code|ENFORCEINDEX [boolean]}}|-| '''Default'''|{{Code|false}}|-| '''Summary'''|Enforces index rewritings in path expressions. See [[Indexes#Enforce Rewritings|Enforce Rewritings]] for details.|} ===COPYNODE=== {| width='100%'|-| width='120' | '''Signature'''|{{Code|COPYNODE [boolean]}}|-| '''Default'''|{{Code|true}}|-| '''Summary'''|When creating new nodes in XQuery via [https:/code> /www.w3.org/TR/xquery-31/#id-constructors Node Constructors], all enclosed nodes will be rewritten to <code>1 ! (. * 2)copied, 2 ! (. * 2)</code>and all resulting nodes will get new node identities. This expression step can be further rewritten to <code>1 * 2very expensive, 2 * 2</code> and <code>2, 4</code>it can be disabled with this option.* If the limit is increasedThe option should be used carefully, more optimizations will take place, but as it changes the size standard behavior of the compiled code might increaseXQuery. It should preferrably be used in [[XQuery Extensions#Database Pragmas|Pragmas]].
|}
| '''Summary'''
|Specifies how often a query will be evaluated. The result is serialized only once, and the measured times are averages of all runs. This option can also be changed on [[Command-Line Options#BaseX Standalone|command line]] via <code>-r</code>.
|}
 
===ENFORCEINDEX===
 
{| width='100%'
|-
| width='120' | '''Signature'''
|{{Code|ENFORCEINDEX [boolean]}}
|-
| '''Default'''
|{{Code|false}}
|-
| '''Summary'''
|Enforces index rewritings in path expressions. See [[Indexes#Enforce Rewritings|Enforce Rewritings]] for details.
|}
 
===COPYNODE===
 
{| width='100%'
|-
| width='120' | '''Signature'''
|{{Code|COPYNODE [boolean]}}
|-
| '''Default'''
|{{Code|true}}
|-
| '''Summary'''
|When creating new nodes in XQuery via [https://www.w3.org/TR/xquery-31/#id-constructors Node Constructors], all enclosed nodes will be copied, and all resulting nodes will get new node identities. This step can be very expensive, and it can be disabled with this option. The option should be used carefully, as it changes the standard behavior of XQuery. It should preferrably be used in [[XQuery Extensions#Database Pragmas|Pragmas]].
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu