There have been some issues with locking too much in 7.6, war did lots of optimizations in 7.7 (available as a developer release). Using either `set queryinfo on` or the GUI will print which databases will get locked. Is there anything surprising you?
XQuery is a very powerful language and it's not always easy to determine which databases to lock. If you're still having issues in 7.7, I'd be glad if you would provide me with some example queries so we can do further optimizations.
Using GLOBALLOCK as proposed by Dirk can help right now if there are problems, but it should be regarded deprecated and could be removed in later versions. The GUI (and only this) still enforces GLOBALLOCK, as we didn't check for possible problems in there yet.
Regards,
Jens
--
Jens Erat
tel:+49-151-56961126
--
Sent from my tablet pc. Sorry for typos - damn those touchscreens. No PGP on this device - I will not be able to read your encrypted message before I'm back on my computer.
Hello Scott,
this sounds like a bug to me. BaseX 7.6 introduced database locking, but it is disabled for the standalone version as far as I know. This would very much explain the different behaviour in the different versions of BaseX. However, you can disable database locking using the
GLOBALLOCK option.
Getting back to your problem, it seems like a misbehaviour to me that something is blocked in your application although you have only read-only queries. Normally, reading queries should not block each other. Maybe you could give us some more information (a SSCCE would be nice) using the
QUERYINFO
Cheers,
Dirk