Changes

Jump to navigation Jump to search
2 bytes removed ,  02:46, 30 January 2013
==Limitations==
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.===Commands===
The current identification of which databases to lock is limited to [[Database locking works with all commands]] using unless no glob syntax and queries that access is used, such as in the currently opened database, XQuery functions that explicitly specify a database, and expressions that address no database at all.following command call:
Some examples on database-locking enabled commands* {{Code|DROP DB new*}}:drop all databases starting with "new"
* {{Code|CREATE DB newdb}}===XQuery=== As XQuery is a very powerful language, writedeciding which databases will be accessed by a query is non-locking of "newdb"* {{Codetrivial. 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|ADD inputQUERYINFO]] is set.xml}}If you think too much is locked, writeplease give us a note on our [http://basex.org/open-locking 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 opened by , XQuery functions that explicitly specify a clientdatabase, and expressions that address no database at all.
Some examples on database-locking enabled queries:
* {{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
 
===GUI===
Database locking is currently disabled if the BaseX GUI is used.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu