Changes

Jump to navigation Jump to search
190 bytes added ,  13:18, 20 July 2018
</pre>
With {{Version|9.0.1}}, the option can also be assigned to predicates with dynamic values. In the following example the comparison of the first comparison will be rewritten for index access. Without the pragma expression, the second comparison is preferred and chosen for the rewriting, because the statically known string allows for an exact cost estimation:
<pre class="brush:xquery">
* The option should only be enabled if the addressed databases exist, have all required index structures and are up-to-date (otherwise, you will be given an error message).
* If you address the full-text index, and if you use non-default indexing options, you will have to specify them in your query (via {{Code|using stemming}}, {{Code|using language 'de'}}, etc).
* The enforcement of index rewritings gives you no guarantee that an index will be used. There are many expressions that cannot be rewritten for index access.
* If you have more than one enforce pragma in a single path expression, only the first will be considered.
=Changelog=
;Version 9.0.1
* Updated: [[#Enforce Rewritings|Enforce Rewritings]], support for comparisons with dynamic values.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu