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:
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:
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
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
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();
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
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
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
8 matches
Mail list logo