Hi all,

I have an application that's embedding BaseX in Java and generates all xqueries 
internally.  These queries are *always* read-only.  The problem I'm running 
into is that file locking prevents more than one user from reading the same 
file at the same time - something that BaseX 7.2 didn't do, but BaseX 7.6 does.

I've tried using the client-server approach to solve the problem, and it works, 
sort-of.  But it has a number of other problems for the conditions that it's 
being run under, and the embedded solution was faster and more robust.

It looks to me like the BaseX standalone command line app and basexgui just 
ignore file-locking, and as long as I'm just using read-only queries, I have no 
trouble issuing two queries at once on the same database.    Is this true?  And 
if so, how is it done?  Because this app is doing only read-queries, it's a lot 
better a solution for me than client-server, but I can't figure out where in 
the source code the database is being opened and how it's being done in a way 
that bypasses locks.

Can anyone give me pointers?

-- Scott Martens
_______________________________________________
BaseX-Talk mailing list
[email protected]
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

Reply via email to