Re: Two tdb instances using same data files

2013-08-20 Thread Andy Seaborne
a.apache.org Subject: Re: Two tdb instances using same data files On 20/08/13 12:49, Shapiro, Alexander wrote: Andy, Thank you for your answer. We have about 10,000,000 triples in the data files. We will work on architecture changes. Meanwhile, if we take the "close-reopen" way, what

RE: Two tdb instances using same data files

2013-08-20 Thread Shapiro, Alexander
a...@apache.org] Sent: Tuesday, August 20, 2013 15:26 To: users@jena.apache.org Subject: Re: Two tdb instances using same data files On 20/08/13 12:49, Shapiro, Alexander wrote: > Andy, > Thank you for your answer. > We have about 10,000,000 triples in the data files. > We will w

Re: Two tdb instances using same data files

2013-08-20 Thread Andy Seaborne
on.release(Location) Andy Thank you, Alex -Original Message- From: Andy Seaborne [mailto:a...@apache.org] Sent: Monday, August 19, 2013 16:06 To: users@jena.apache.org Subject: Re: Two tdb instances using same data files On 19/08/13 13:21, Shapiro, Alexander wrote: Hi, A whil

RE: Two tdb instances using same data files

2013-08-20 Thread Shapiro, Alexander
[mailto:a...@apache.org] Sent: Monday, August 19, 2013 16:06 To: users@jena.apache.org Subject: Re: Two tdb instances using same data files On 19/08/13 13:21, Shapiro, Alexander wrote: > Hi, > A while ago I've asked a question about two tdb instances using same data > files (see bel

Re: Two tdb instances using same data files

2013-08-19 Thread Andy Seaborne
On 19/08/13 13:21, Shapiro, Alexander wrote: Hi, A while ago I've asked a question about two tdb instances using same data files (see below). Now I'm using the following code to open a model on both instances: SystemTDB.setFileMode(FileM

RE: Two tdb instances using same data files

2013-08-19 Thread Shapiro, Alexander
Hi, A while ago I've asked a question about two tdb instances using same data files (see below). Now I'm using the following code to open a model on both instances: SystemTDB.setFileMode(FileMode.direct); TDBMaker.setImplFactory(TDBMaker.uncachedFactory);

RE: Two tdb instances using same data files

2013-03-11 Thread Alex Shapiro
Thank you, Andy! I will try this. Alex -Original Message- From: Andy Seaborne [mailto:andy.seaborne.apa...@gmail.com] On Behalf Of Andy Seaborne Sent: Monday, March 11, 2013 15:46 To: users@jena.apache.org Subject: Re: Two tdb instances using same data files On 11/03/13 11:29, Alex

Re: Two tdb instances using same data files

2013-03-11 Thread Andy Seaborne
On 11/03/13 11:29, Alex Shapiro wrote: Thank you Marco and Andy! I perfectly understand that changes made in one JVM will not update the model in second JVM and that this is in general a bad idea :-). We are working on changing the architecture of our application. Meanwhile, let's say I know when

RE: Two tdb instances using same data files

2013-03-11 Thread Alex Shapiro
Sent: Sunday, March 10, 2013 20:15 To: users@jena.apache.org Subject: Re: Two tdb instances using same data files On 10/03/13 17:05, Marco Neumann wrote: > Ok yes so this is a very bad idea as mentioned earlier. I would > consider to replace the file access with an endpoint and execute > sel

Re: Two tdb instances using same data files

2013-03-10 Thread Andy Seaborne
On 10/03/13 17:05, Marco Neumann wrote: Ok yes so this is a very bad idea as mentioned earlier. I would consider to replace the file access with an endpoint and execute select and update via SPARQL. Yes, use an endpoint - use Fuseki as a shared database server. It will go wrong otherwise. Eve

Re: Two tdb instances using same data files

2013-03-10 Thread Marco Neumann
--Original Message- > From: Marco Neumann [mailto:marco.neum...@gmail.com] > Sent: Sunday, March 10, 2013 18:25 > To: users@jena.apache.org > Subject: Re: Two tdb instances using same data files > > does the app terminate after each connection or do they constantly hold a &

RE: Two tdb instances using same data files

2013-03-10 Thread Alex Shapiro
It keeps the reference to model in memory. Alex -Original Message- From: Marco Neumann [mailto:marco.neum...@gmail.com] Sent: Sunday, March 10, 2013 18:25 To: users@jena.apache.org Subject: Re: Two tdb instances using same data files does the app terminate after each connection or do

Re: Two tdb instances using same data files

2013-03-10 Thread Marco Neumann
0, 2013 17:42 > To: users@jena.apache.org > Subject: Re: Two tdb instances using same data files > > they are non static connections? > > On Sun, Mar 10, 2013 at 11:40 AM, Alex Shapiro > wrote: >> There is an external lock mechanism we use to prevent concurrent write. >&g

RE: Two tdb instances using same data files

2013-03-10 Thread Alex Shapiro
Marco Neumann [mailto:marco.neum...@gmail.com] Sent: Sunday, March 10, 2013 17:42 To: users@jena.apache.org Subject: Re: Two tdb instances using same data files they are non static connections? On Sun, Mar 10, 2013 at 11:40 AM, Alex Shapiro wrote: > There is an external lock mechanism w

Re: Two tdb instances using same data files

2013-03-10 Thread Marco Neumann
inal Message- > From: Marco Neumann [mailto:marco.neum...@gmail.com] > Sent: Sunday, March 10, 2013 16:01 > To: users@jena.apache.org > Subject: Re: Two tdb instances using same data files > > how do you guarantee that there are no concurrent read/writes on the files in > the

RE: Two tdb instances using same data files

2013-03-10 Thread Alex Shapiro
@jena.apache.org Subject: Re: Two tdb instances using same data files how do you guarantee that there are no concurrent read/writes on the files in the current setup? On Sun, Mar 10, 2013 at 9:33 AM, Alex Shapiro wrote: > Generally there is a web services on each machine that passes the requests to &g

Re: Two tdb instances using same data files

2013-03-10 Thread Marco Neumann
gmail.com] > Sent: Sunday, March 10, 2013 15:20 > To: users@jena.apache.org > Subject: Re: Two tdb instances using same data files > > how do you access the tdb databases? in general it's a bad idea to grant > access to the files to more than one client. > > > > &

RE: Two tdb instances using same data files

2013-03-10 Thread Alex Shapiro
rking on this. Alex -Original Message- From: Marco Neumann [mailto:marco.neum...@gmail.com] Sent: Sunday, March 10, 2013 15:20 To: users@jena.apache.org Subject: Re: Two tdb instances using same data files how do you access the tdb databases? in general it's a bad idea to grant access to t

Re: Two tdb instances using same data files

2013-03-10 Thread Marco Neumann
how do you access the tdb databases? in general it's a bad idea to grant access to the files to more than one client. On Sun, Mar 10, 2013 at 9:12 AM, Alex Shapiro wrote: > Hi, > We have 2 tdb instances (2 JVMs on separate machines) that access the same > data files on shared location. No sim

Two tdb instances using same data files

2013-03-10 Thread Alex Shapiro
Hi, We have 2 tdb instances (2 JVMs on separate machines) that access the same data files on shared location. No simultaneous WRITE operations are allowed. The question is whether we should reset/update/close and open again the model on second JVM after WRITE operation was executed on first one?