Please try not to cross post on several channels. Thanks!

Neo4j node id's are record id's so if you provide it with a high enough
rercord number it will create all those intermediate empty records on your
disk.

If you have a slow disk, and perhaps not configured memory mapping then it
can take a while to write out all the data.

So in your case it will create 1.39 billion empty records to insert your
second node.

You should refrain from controlling node-id's externally if you are not
totally sure you know why you want to do it.


On Tue, Mar 25, 2014 at 10:04 AM, Anuraag Shinde <[email protected]>wrote:

> Version: neo4j-community-2.1.0-M01
> Neo4j embedded in Java
>
> Sample code :-
>
>         long timeStamp = System.currentTimeMillis();
>         System.out.println("Start insert ID:-"+(timeStamp/10000));
>         sTime = System.currentTimeMillis();
>         inserter.createNode(timeStamp/10000,properties,
> DynamicLabel.label("test"));
>         System.out.println("Time taken to add
> nodeID:-"+(timeStamp/10000)+" is :-"+(System.currentTimeMillis()-sTime));*
> // Returns 15 miliseconds*
>
>         System.out.println("Start insert ID:-"+(timeStamp/1000));
>         sTime = System.currentTimeMillis();
>         inserter.createNode(timeStamp/1000,properties,
> DynamicLabel.label("test")); *// process hangs.*
>         System.out.println("Time taken to add nodeID:-"+(timeStamp/1000)+"
> is :-"+(System.currentTimeMillis()-sTime));
>
> Above also locks the .db folder and unable to even kill java.exe process.
> Is there a limit for NodeID ? Since datatype is long it should support any
> long value.
> Please advice. Looking to bulk import millions of nodes and relations per
> 5/10 mins interval, hence need a control on NodeID.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to