If you call register() on the QueryProcessor, and if your query includes update operations, you won't be able to run other concurrent queries. This may change in a future version of BaseX.
I would indeed recommend to include all read and write operations in a single XQuery, even if it may take some time to get to know the nuts and bolts of the language.
Christian ___________________________
On Tue, Nov 6, 2012 at 3:05 PM, Rainer Klute rainer.klute@itemis.de wrote:
On 06.11.2012 14:51, Christian Grün wrote:
You shouldn't encounter any problems if you are accessing the two databases in a single XQuery expression. Could you give some more details on what you've tried so far?
Christian, I use a QueryProcessor to fetch the complete database A, and I use the internal API (aka ANode) to navigate the tree up and down in an interactive application (on Android). In parallel, a separate thread creates a separate database B from an XML document. This takes quite some time, and while B is written, the user should be able to navigate A.
Hm, I just encountered an OutOfMemoryError; will have to look closer at it...
--
Best regards Rainer Klute