===XQuery===
With {{Announce|Version 10}}, the [[BaseX 10#Compilation|lock detection was has been fundamentally improved]] , by splitting compilation into multiple steps.
Local locks can be applied if it is possible after compile time to associate all database operations with static databases names: