Changes

Jump to navigation Jump to search
38 bytes added ,  19:39, 30 January 2013
m
no edit summary
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.
Some examples on database-locking enabled queries, all of these can be executed in parallel:
* {{Code|//item}}, read-locking of the database opened by a client
* {{Code|fn:sum(1 to 100)}}, locking nothing at all
* {{Code|delete nodes doc('test')//*[string-length(local-name(.)) > 5]}}, write-locking of "test"
 
All of these queries can be executed in parallel:
Some examples on queries that are not supported by database-locking yet:
==How to disable==
In order to enable disable traditional process locking, the option <code>[[Options#GLOBALLOCK|GLOBALLOCK]]</code> can be set to {{Code|truefalse}}. This can e.g. be done by editing your {{Code|.basex}} file (see [[Options]] for more details). To enable it again, set it to [[Code|true}}.
=File-System Locks=
editor, reviewer
35

edits

Navigation menu