You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Eno Thereska <en...@andrew.cmu.edu> on 2004/10/06 00:56:04 UTC

concurrent access to Xindice

Hi,

I am new to Xindice and I have a multi-threaded application, in which 
each thread needs to store and/or retreive XML documents from Xindice. I 
have the following question:

- do I need to worry about synchronization issues, or can I query and
   update documents freely?

Also an unrelated question:
- Can I create an XPathQueryService object at the beginning of my
   program and then always use it to query the databases (while new
   entries are entering and/or being deleted from the database)?
   Or do I need one per query?

Thanks a lot
Eno


Re: concurrent access to Xindice

Posted by Vadim Gritsenko <va...@reverycodes.com>.
Eno Thereska wrote:
> Hi,
> 
> I am new to Xindice and I have a multi-threaded application, in which 
> each thread needs to store and/or retreive XML documents from Xindice. I 
> have the following question:
> 
> - do I need to worry about synchronization issues, or can I query and
>   update documents freely?

It should work ok as long as this is latest code from cvs. Don't remember about 
b3, and b4 has some other bug fixed in cvs.


> Also an unrelated question:
> - Can I create an XPathQueryService object at the beginning of my
>   program and then always use it to query the databases (while new
>   entries are entering and/or being deleted from the database)?
>   Or do I need one per query?

One service (per collection) is Ok.

Vadim