On 30/10/12 09:07, Aurelien ROUX-THOMAS wrote:
Hi,
I'm a new user of Jena and i'm french so sorry for my english !
I noticed the same thing as him :
http://stackoverflow.com/questions/11088082/how-to-reduce-the-size-of-the-tdb-backed-jena-dataset
("I remove the model from the dataset. Future queries over that model
name reveal that it has successfully been removed. However, the disk
size of the TDB database folder remains the same size, even after
syncing and quitting.")
I wanna know if throw the API or a command line we can "clear" the
repository size.
Because that repository will be use in an professionnal and i do not
want the size on disk stay the same if i delete some triple or graph.

Thanks for your help.
Sorry for my english, and sorry if i didn't find the solution by my own.
Regards.
A.


No - there isn't a way. The free space is left in the files for later reuse (caveat that restarting causes some of the space to become permanently inaccessible currently).

The way to do it is to dump (to NQuads) and restore.

Or if it's the whole database, release it from the StoreConnection and delete the files. Except for Windows-64 where there is a long standing Java issue with not being able to release mmap segments.

        Andy

Reply via email to