Anyway i still have a question.

Here the changes :

I addes the begin write transaction before calling getDefaultModel()
// Begin write transaction
 ds.begin(ReadWrite.WRITE);
 model = ds.getDefaultModel();


At the end i close the connection as follow :

// End transaction
ds.end();
 // Close the model
model.close();

// Close the dataset.
 ds.close();


Same thing for retrieving data (before i didnt start and end any
transactions) so now :

// Begin readtransaction
 ds.begin(ReadWrite.READ);
 model = ds.getDefaultModel();


and i close it as follow at the end :

// End transaction
 ds.end();
 // Close the model
model.close();

// Close the dataset.
 ds.close();


Why thoses changes solve the size problem ?


2013/5/10 Brian McBride <[email protected]>

> On 10/05/2013 15:29, Bill Roberts wrote:
>
>>
>>> I'm pretty confident that an empty TDB database does not occupy 192MB.
>>>
>>>  It does on a Mac - as explained in Andy's mail a little while ago.
>>
> Gosh!  I just reread Andy's message.  Frederic says he is using Windows 7.
>
> Brian
>
>
>
>> Not sure what OS Frederic is using.
>>
>> total 393216
>> drwxr-xr-x  29 bill  staff      986 10 May 15:27 ./
>> drwxr-xr-x  19 bill  staff      646 10 May 15:26 ../
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 GOSP.dat
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 GOSP.idn
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 GPOS.dat
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 GPOS.idn
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 GSPO.dat
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 GSPO.idn
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 OSP.dat
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 OSP.idn
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 OSPG.dat
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 OSPG.idn
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 POS.dat
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 POS.idn
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 POSG.dat
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 POSG.idn
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 SPO.dat
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 SPO.idn
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 SPOG.dat
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 SPOG.idn
>> -rw-r--r--   1 bill  staff        0 10 May 15:27 journal.jrnl
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 node2id.dat
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 node2id.idn
>> -rw-r--r--   1 bill  staff        0 10 May 15:27 nodes.dat
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 prefix2id.dat
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 prefix2id.idn
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 prefixIdx.dat
>> -rw-r--r--   1 bill  staff  8388608 10 May 15:27 prefixIdx.idn
>> -rw-r--r--   1 bill  staff        0 10 May 15:27 prefixes.dat
>>
>>
>
> --
> Epimorphics Ltd (http://www.epimorphics.com)
>
> Epimorphics Ltd. is a limited company registered in England (number
> 7016688)
> Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20
> 6PT, UK
>
>

Reply via email to