Changes

Jump to navigation Jump to search
9 bytes added ,  15:48, 17 January 2016
no edit summary
This article is part of the [[XQuery|XQuery Portal]]. It contains information on the available index structures. The query compiler tries to optimize and speed up queries by applying the index whenever it is possible and seems promising.
Most examples in this article are based on The query compiler tries to optimize and speed up queries by applying the [http://files.basex.org/xml/factbook.xml factbook.xml] documentindex whenever it is possible and seems promising. To see how a query is rewritten, and if an index is used, please you can turn on the [[GUI#Visualizations|Info View]] in the GUI or use the [[Command-Line Options#BaseX_Standalone|-V flag]] on the command line:
* A message like <code>Applying text index for "Japan"</code> indicates that the text index is applied to speed up the search of the shown string. The following message…
* <code>Removing path with no index results</code> indicates that a string in a path expression will never yield results. Because of that, the path does not need to be evaluated at all.
* If you cannot find any index optimization hints in the info output, it often helps if you rewrite and simplify your query. Most of the examples in this article are based on the [http://files.basex.org/xml/factbook.xml factbook.xml] document.<br/> 
=Structural Indexes=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu