The resource index contains references to the {{Code|pre}} values of all XML document nodes. It speeds up the access to specific documents in a database, and it will be automatically updated when updates are performed.
The following query will be sped up by the document resource index:
<pre class="brush:xquery">