[Neo4j] Create random unique edges

2016-06-09 Thread Cherie Pun
Hi, I am trying to figure out a way to create random unique edges in the graph. I have written the following query to create a relationship between two users, but count always return 1 whether a new relationship is created or not. Is there a way to determine whether there was an existing edge

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 i

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

2016-06-04 Thread Cherie Pun
ry.GraphDatabaseFacade.beginTx(GraphDatabaseFacade.java:330) > Any idea why the database is still shutdown instead of restarted? Thanks. Kind regards, Cherie On 4 June 2016 at 15:34, 'Michael Hunger' via Neo4j <neo4j@googlegroups.com> wrote: > Shutdown and create new, y

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 <neo4j@googlegroups.com> wrote: > Shutdown and create new, yes > > Von meinem iPhone gesendet > > Am 04.06.2016 um 14:17 schrieb Cherie Pun <cherie.cy@gmail.com>: > > If I am us

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

2016-06-04 Thread Cherie Pun
> record-reuse. > > > Am 04.06.2016 um 01:49 schrieb Cherie Pun <cherie.cy@gmail.com>: > > > > 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

[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

[Neo4j] Go through all the transitive relationships in the database

2016-05-26 Thread Cherie Pun
I am trying to find an efficient way of traversing all nodes and find transitive relationships of length 2 on my database. Currently, I am using query1 to compute the new properties for the new relationship and query 2 to add the relationship into the database query1: MATCH (a:USERS) -

[Neo4j] Creating unique relationship using java api

2016-05-18 Thread Cherie Pun
Hi, I am wondering is there a way to create a unique relationship from nodeA to nodeB using just the java api? Or must I execute a cypher query for that? Also, if both ways are available, which way is more efficient? Thanks. -- You received this message because you are subscribed to the

Re: [Neo4j] Get GC overhead limit exceeded while executing batches of cypher query

2016-05-16 Thread Cherie Pun
, usually how big should my batch be? I am currently using 1000 and it seems quite fast. Thanks. On Friday, 13 May 2016 12:41:38 UTC+1, Cherie Pun wrote: > > Thanks for the advice! I will try it out and let you know how it goes. > > The stack overflow answer is here: > http://st

Re: [Neo4j] Get GC overhead limit exceeded while executing batches of cypher query

2016-05-13 Thread Cherie Pun
rge and create > unique > > Where did you find that answer on SO? > > Von meinem iPhone gesendet > > Am 13.05.2016 um 13:31 schrieb Cherie Pun <cherie.cy@gmail.com>: > > Hi, > > Thanks for the quick reply. I returned the relationship because the

[Neo4j] Get GC overhead limit exceeded while executing batches of cypher query

2016-05-12 Thread Cherie Pun
I am trying to iterate through the results from the first query and execute an extra cypher query for each result to either create or find the existing relationship. However I encountered GC overhead error and the stack trace is as followed. I thought running the queries in batch of 100 will

[Neo4j] Using Neo4j in java application

2016-04-15 Thread Cherie Pun
Hi, I am looking into storing twitter data into graph database for some relation analysis. I am hoping to use neo4j but I am a bit lost as to how to start using it in my java application. I have read online that it's easier to use spring but I have not used spring at all before. I found two