</syntaxhighlight>
When If an XQuery expression calls the Java invokes {{Code|write()}} function, any other query that call {{Code|write()}} or {{Code|read()}} needs to wait for the query to be finished. The {{Code|read()}} function can be run in parallel; only those queries are queued that call {{Code|write()}}.
More details on concurrent querying can be found in the article on [[Transaction Management]].