Re: [Neo4j] Slow down on insertion as db grow

2011-03-03 Thread Tobias Ivarsson
Hi Massimo, I'm terribly sorry, I've had a lot of things on my plate, and this sadly fell off. Thanks for the reminder! Could you please try lowering the heap size (to somewhere between 512M-1G with your available RAM). The Neo4j memory mapping is managed outside of the Java heap. What you want

Re: [Neo4j] How to copy a complete database?

2011-03-03 Thread Tobias Ivarsson
No there is no simpler way, yet. We've been thinking about creating a short string compression tool for accomplishing this, but haven't done so yet. Cheers, Tobias On Thu, Mar 3, 2011 at 11:35 AM, Balazs E. Pataki pat...@dsd.sztaki.huwrote: Hi, I have a big database based on Neo4J 1.2. Now,

Re: [Neo4j] How to copy a complete database?

2011-03-03 Thread Axel Morgner
Hi Balazs, you have to manually copy all nodes and relationships from one to the other database. I have written a tool for that and posted some code here [1]. But take care, in the posted version in [1], relationship properties were not copied. To fix that, you have to replace

Re: [Neo4j] Clear graph (delete all nodes and relations)

2011-03-03 Thread Alfredas Chmieliauskas
On Wed, Mar 2, 2011 at 12:14 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Well, you can set the reference node to anything, so you could do graph.delete(); newRoot = neo4j.createNode(); neo4j.setReferenceNode(newRoot); I bet this is the problem: the reference node gets

Re: [Neo4j] How to copy a complete database?

2011-03-03 Thread Balazs E. Pataki
Thank you all for the replies. I will try Axel's solution. Regards, --- balazs On 3/3/11 12:08 PM, Axel Morgner wrote: Hi Balazs, you have to manually copy all nodes and relationships from one to the other database. I have written a tool for that and posted some code here [1]. But take

Re: [Neo4j] How to copy a complete database?

2011-03-03 Thread Peter Neubauer
Mmh, maybe this could be in some Utilities class? Seems a good thing to be able to clone a graph ... Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter     

Re: [Neo4j] How to copy a complete database?

2011-03-03 Thread Axel Morgner
+1 On 03.03.2011 12:25, Peter Neubauer wrote: Mmh, maybe this could be in some Utilities class? Seems a good thing to be able to clone a graph ... ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Clear graph (delete all nodes and relations)

2011-03-03 Thread Peter Neubauer
Well, reference nodes are not part of the Blueprints API. Neo4j is not decided yet how and if to change the reference node approach. Either make it a setup option, keep it, or remove it totally. Marko is coming over in April, so there will be fighting at the Malmö office over this :) Cheers,

Re: [Neo4j] How to copy a complete database?

2011-03-03 Thread Alex Averbuch
You could use GraphMigrator from Blueprints: https://github.com/tinkerpop/blueprints/blob/master/src/main/java/com/tinkerpop/blueprints/pgm/util/graphml/GraphMigrator.java Check out *testMigratingTinkerGraphExample3()* in this test case for usage:

Re: [Neo4j] How to copy a complete database?

2011-03-03 Thread Craig Taverner
What would be the consequence of running a background thread that iterated through all nodes and relationships, and if any had a short string property, it would re-save the property? I assume the properties store would get a lot of empty space in the beginning, or would old-id reuse kick in and

Re: [Neo4j] Clear graph (delete all nodes and relations)

2011-03-03 Thread Alfredas Chmieliauskas
On Thu, Mar 3, 2011 at 12:30 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Well, reference nodes are not part of the Blueprints API. Neo4j is not decided yet how and if to change the reference node approach. Either make it a setup option, keep it, or remove it totally. Marko is

Re: [Neo4j] How to copy a complete database?

2011-03-03 Thread Balazs E. Pataki
Hi Tobias, Do you happen to have some little class which can at tell us which property values neo4j would consider short and which of your 6 encoding would it use? Maybe the string statistics collecting program you created earlier has this logic - but I'm just guessing. Thanks, --- balazs On

Re: [Neo4j] How to copy a complete database?

2011-03-03 Thread Tobias Ivarsson
Yes, the statistics tool almost does that, but with a wider range of possible encodings. What would you want from a class like that? Give it a string as input and have it tell you if it is short or not? Or go through an existing store and tell you how many of the strings are short? -tobias On