Changes

Jump to navigation Jump to search
45 bytes removed ,  11:57, 13 July 2020
==Database Pragmas==
[[Options|Local database options]] can also be assigned via pragmas. Some examples:
* Enforce query to [[Indexes|Index access rewritings]] can be rewritten for index accessenforced. This can e. g. be is helpful if the name of a database is not static (see [[Indexes#Enforce Rewritings|Enforce Rewritings]] for more examplesdetails):
<syntaxhighlight lang="xquery">
</syntaxhighlight>
* Temporarily disable node Node copying in node constructors can be disabled (see {{Option|COPYNODE}} for more details). The following query will be evaluated faster, and take consume much less memory, than without pragma, because as the database nodes will not be fully copiedduplicated, but only attached to the new {{Code|xml}} parent element:
<syntaxhighlight lang="xquery">
</syntaxhighlight>
* Specify an An XML catalog can be specified for URI rewritingrewritings. See the [[Catalog Resolver]] section for an example.
=Annotations=
=Non-Determinism=
In [httphttps://www.w3.org/TR/xpath-functions-31/#dt-deterministic XQuery], ''deterministic'' functions are “guaranteed to produce ·identical· results from repeated calls within a single ·execution scope· if the explicit and implicit arguments are identical”. In BaseX, many extension functions are non-deterministic or side-effecting. If an expression is internally flagged as non-deterministic, various optimizations that might change their execution order will not be applied.
<syntaxhighlight lang="xquery">
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu