unordered

Indicates that order is not significant, to improve performance

Description

The fn:unordered function indicates that order is not significant, to improve performance. In cases where the order of the results does not matter, the processor may be much more efficient if it does not have to keep track of order. This is especially true for FLWORs that perform joins. For example, processing multiple variable bindings in a for clause might be significantly faster if the processor can decide which variable binding controls the join without regard to the order of the results. A query author can tell the processor that order does not matter by enclosing an expression in a call to the fn:unordered function.

Parameters

Description

sourceSeq:item()