You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Test
public void testBlazeGraph() {
StopWatch stopWatch = new StopWatch();
stopWatch.start();
final BlazeGraphEmbedded g = BlazeGraphFactory.open(journalFile);
for (int i = 0; i < 10000; i++) {
g.addVertex(T.label, "Person", "name", "xxxxxx");
}
g.tx().commit();
stopWatch.stop();
System.out.println(stopWatch.toString());
stopWatch.reset();
stopWatch.start();
Assert.assertEquals(10000, g.traversal().V().hasLabel("Person").count().next().intValue());
stopWatch.stop();
System.out.println(stopWatch.toString());
}
0:03:40.845 for insert
0:00:00.164 for select
The select is fine but the insert time is way to slow.
The time seem to be spent in com.bigdata.relation.accesspath.BlockingBuffer$BlockingIterator._hasNext()
The same code on Sqlg (Postgres) inserts in 1.2 seconds.
I did not test Neo4j but it is in general way faster than Sqlg being embedded.
0:03:40.845 for insert
0:00:00.164 for select
The select is fine but the insert time is way to slow.
The time seem to be spent in
com.bigdata.relation.accesspath.BlockingBuffer$BlockingIterator._hasNext()The same code on Sqlg (Postgres) inserts in 1.2 seconds.
I did not test Neo4j but it is in general way faster than Sqlg being embedded.
Expecting sub second times for an embedded graph.