which is your current rate? It seems very sparadic, I guess the same, about 100 edges a second. Some seconds up to a thousand edges are inserted but then I seem to have great gaps.... Edge per second: [507] Edge per second: [0] Edge per second: [0] Edge per second: [0] Edge per second: [616] Edge per second: [810]
Do you need this as a batch import that you do one time? Sorry, I am not sure I not understand what you mean... batch importing is completely fine, whatever is the best way! On Wednesday, October 14, 2015 at 9:14:31 PM UTC+1, Enrico Risa wrote: > > Hi Simon > > which is your current rate? > > Do you need this as a batch import that you do one time? > > 2015-10-14 22:03 GMT+02:00 Simon White <[email protected] > <javascript:>>: > >> >> I am using Orientdb v2.1.2 >> >> I need to insert several million edges between two EXISTING vertex. >> >> I started off using the .NET API as my previous codebase (using an RDBMS) >> was c#-based however performance was terrible (~100 edges a second) >> >> I have completely re-written the code base in java now but unfortunately >> performance has not improved much. I was hoping to see at least several >> thousand edges created per second. I wonder if anyone could tell me if I am >> on the right track... >> >> >> Note: I already know the string ORID for the two vertex. The model is >> simply lots of V(from) =====> E =====> V(to) from vertex >> are unique (3million), to vertex are often common (50k) >> >> >> OrientGraphFactory factory = new >> OrientGraphFactory("remote:localhost/TEST"); >> OrientGraph graph = factory.getTx(); >> >> OrientVertex fromVertex = graph.getVertex(fromORID); >> OrientVertex toVertex = graph.getVertex(toORID); >> >> graph.addEdge("class:from_relates_to", fromVertex , toVertex , >> "from_relates_to"); >> >> after several thousand I do >> >> graph.commit(); >> >> >> graph.getVertex seems to be a particular bottleneck >> >> Thank you in anticipation... >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "OrientDB" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" 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.
