On Sunday 24 June 2012 12:30:08 Willian Barcella wrote:
What you mean "single writer"?
I mean that, the basex server has internal lock mechanism, which blocks all sessions willing to execute an updating query, and effectively, it executes them sequentially, i.e. one after another. this means that basex does not support parallel execution of update queries.
*Even BaseX does not support parallel updates, in server side it shouldn't lose documents or it should throw an exception to client side saying that document was not inserted. *
agreed. can you put a static counter in your class, which is incremented each time the save method is called. this can help isolate the cause: if the value of the counter is different from 10000, then the problem is somewhere in the thread management code; otherwise, it has to be somewhere in the baseX code.
regards, dimitar