Locks are not synchronized between multiple BaseX instances. We generally recommend working with the client/server architecture if concurrent write operations are to be performed.
==How to disable==
In order to enable traditional process locking, the option <code>[[Options#GLOBALLOCKING|GLOBALLOCKING]]</code> can be set to {{Code|true}}. This can e.g. be done by editing your {{Code|.basex}} file (see [[Options]] for more details).
==Limitations==
* {{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
==How to disable==
In order to enable traditional process locking, the option <code>[[Options#GLOBALLOCKING|GLOBALLOCKING]]</code> can be set to {{Code|true}}. This can e.g. be done by editing your {{Code|.basex}} file (see [[Options]] for more details).
=File-System Locks=