Re: [Neo4j] Deleting relationships does not reduce the storage in size

2016-06-04 Thread Cherie Pun
Just found out that I was storing the graphDb in another class and I did not update the reference to it. Sorry for spamming. Kind regards, Cherie On Saturday, 4 June 2016 18:32:28 UTC+1, Cherie Pun wrote: > > Hi, > > I wrote this snippet of code to restart the database, but it's throwing > erro

Re: [Neo4j] Deleting relationships does not reduce the storage in size

2016-06-04 Thread Cherie Pun
Hi, I wrote this snippet of code to restart the database, but it's throwing errors. > private void restartDatabase(){ > if(graphDb != null && graphDb.isAvailable(0)){ > graphDb.shutdown(); > } > graphDb = new GraphDatabaseFactory() > .newEmbedde

Re: [Neo4j] Deleting relationships does not reduce the storage in size

2016-06-04 Thread Cherie Pun
Thanks! Kind regards, Cherie On 4 June 2016 at 15:34, 'Michael Hunger' via Neo4j wrote: > Shutdown and create new, yes > > Von meinem iPhone gesendet > > Am 04.06.2016 um 14:17 schrieb Cherie Pun : > > If I am using java GraphDatabaseService, do I need to create a new > embedded database to res

Re: [Neo4j] Deleting relationships does not reduce the storage in size

2016-06-04 Thread 'Michael Hunger' via Neo4j
Shutdown and create new, yes Von meinem iPhone gesendet > Am 04.06.2016 um 14:17 schrieb Cherie Pun : > > If I am using java GraphDatabaseService, do I need to create a new embedded > database to restart it? Thanks. > > Kind regards, > Cherie > >> On 4 June 2016 at 03:01, 'Michael Hunger' via

Re: [Neo4j] Deleting relationships does not reduce the storage in size

2016-06-04 Thread Cherie Pun
If I am using java GraphDatabaseService, do I need to create a new embedded database to restart it? Thanks. Kind regards, Cherie On 4 June 2016 at 03:01, 'Michael Hunger' via Neo4j wrote: > Just restart the db after deleting a lot of relationships will enable > record-reuse. > > > Am 04.06.2016

Re: [Neo4j] Deleting relationships does not reduce the storage in size

2016-06-03 Thread 'Michael Hunger' via Neo4j
Just restart the db after deleting a lot of relationships will enable record-reuse. > Am 04.06.2016 um 01:49 schrieb Cherie Pun : > > Hi, > > I have seen a few questions that were posted from before that it does not > free the space up immediately. My application is running analysis over the

[Neo4j] Deleting relationships does not reduce the storage in size

2016-06-03 Thread Cherie Pun
Hi, I have seen a few questions that were posted from before that it does not free the space up immediately. My application is running analysis over the database repeatedly but each time inserting different number of relationships so I have to remove them before I run the next iteration. The