[Neo4j] Delete a RelationshipType

2010-10-31 Thread Amir Hossein Jadidinejad
Hi, I have a graph with two different RelationshipType: R1, R2 I want to replace all RelationshipTypes with a new R3. It means that previous relations are exist but its types change to R3. Iterate over all nodes, delete previous relations and create new relation with the following source code:

Re: [Neo4j] Delete a RelationshipType

2010-10-31 Thread Anders Nawroth
Hi! After running, size of the graph is changed from 2GB to 3.5GB I think this is because the storage slots of the old relationships is not compacted but will be reused for new relationships in the future. and when I print the relationship types with:

Re: [Neo4j] Delete a RelationshipType

2010-10-31 Thread Craig Taverner
I think this is because the storage slots of the old relationships is not compacted but will be reused for new relationships in the future. I am curious, are there any 'developer tricks' for influencing when old slots are reused? For example, instead of adding the new relationships

Re: [Neo4j] Delete a RelationshipType

2010-10-31 Thread Chris Gioran
I am curious, are there any 'developer tricks' for influencing when old slots are reused? For example, instead of adding the new relationships immediately after deleting old ones, but keeping a cache of 'relationships to add' and adding them a little later. Will that increase the chance of old

Re: [Neo4j] Delete a RelationshipType

2010-10-31 Thread Chris Gioran
My understanding is this: And it is wrong. Consider the following snippet: GraphDatabaseService graphDb = new EmbeddedGraphDatabase(var/base); Transaction tx = graphDb.beginTx(); Node firstNode = graphDb.createNode(); Node secondNode = graphDb.createNode();

Re: [Neo4j] Delete a RelationshipType

2010-10-31 Thread Craig Taverner
A db restart is required to start reusing free'd ids? Seems a bit drastic. I hope it happens sooner than that. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Delete a RelationshipType

2010-10-31 Thread Mattias Persson
2010/10/31 Craig Taverner cr...@amanzi.com A db restart is required to start reusing free'd ids? Seems a bit drastic. I hope it happens sooner than that. As far as I know no id's are reused during one lifecycle of an EmbeddedGraphDatabase. It needs to be restarted to be able to discover old

Re: [Neo4j] LuceneIndexProvider EXACT_CONFIG vs. FULLTEXT_CONFIG

2010-10-31 Thread Mattias Persson
Have you looked at the lucene documentation? Neo4j doesn't touch any of that, it lets Lucene do the sorting. Do your values have lots of words in them (snippets of text)? You could probably copy-paste the exception message and google it! 2010/10/29 Konstanze.Lorenz konstanze.lor...@fh-zwickau.de