Changes

Jump to navigation Jump to search
14 bytes added ,  02:49, 30 January 2013
===XQuery===
As XQuery is a very powerful language, deciding which databases will be accessed by a query is non-trivial. Optimization is work in progress. Databases locked by a query are listed in the GUI's [[GUI#Visualizations|Info View]] and on the command line client if [[Options#QUERYINFO|QUERYINFO]] is set. If you think too much is locked, please give us a note on our [http://basex.org/open-source/ mailing list] with some example code. 
The current identification of which databases to lock is limited to queries that access the currently opened database, XQuery functions that explicitly specify a database, and expressions that address no database at all.
* {{Code|doc(doc('test')/reference/text())}}, will read lock globally: ditto
* <code>let $db := 'test' return insert nodes <test/> into doc($db)</code>, will write lock globally: ditto
 
A list of all locked databases is output if <code>[[Options#QUERYINFO|QUERYINFO]]</code> is set to {{Code|true}}. <!-- and in the GUI's [[GUI#Visualizations|Info View]] --> If you think too much is locked, please give us a note on our [http://basex.org/open-source/ mailing list] with some example code.
===GUI===
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu