OrientDB says we can create around some million edges per second using It, while putting a JAVA script for the same, i found only 140-150 edges per second were made.
Is it really possible to create million edges in orient db per second?
and if so, what's the Java way to do it?
(I Used TinkerPop API and just created some n Vertices, then using
graph.addEdge("id","fromVertex","toVertex","edgeLabel"));
created n*n-1 edges between these all n vertices
tested it till 20 nodes, edge created per second were 140-150
for (Vertex v : graphNoTx.getVertices()) {
for (Vertex v2 : graphNoTx.getVertices()) {
if (v2.equals(v)) {
continue;
}
startTime = System.currentTimeMillis();
Edge eCard = graphNoTx.addEdge("class:EDGETYPE1", v, v2, "CardComposedOf");
stopTime = System.currentTimeMillis();
edgeCreationTime = stopTime - startTime;
totalEdgeCreationTime += edgeCreationTime;
totalEdges++;
}
}
loopStopTime = System.currentTimeMillis();
loopTime = loopStopTime - loopStartTime;