Hi Rahul, http://stackoverflow.com/questions/28369749/orientdb-2-0-0-bulk-load-using-java-api-is-cpu-bound
On Wednesday, 2 March 2016 11:00:34 UTC+5:30, Rahul wrote: > > HI > I want to insert this record into orientdb using gremlin. > help me > > On Tuesday, March 1, 2016 at 8:20:50 PM UTC+5:30, [email protected] > wrote: > >> Hi Rahul, >> >> try this code: >> >> OrientGraph g = new OrientGraph("remote:localhost/Insert_Gremlin","admin" >> ,"admin"); >> >> int vertex_number=50000; >> >> for(int i=0;i<vertex_number;i++) >> { >> Vertex v = g.addVertex("class:Table"); >> v.setProperty("name", "user_"+i); >> System.out.println("#### "+i); >> } >> >> g.commit(); >> >> When I query Table: >> >> >> <https://lh3.googleusercontent.com/-4ZZoZA22w4k/VtWsLcw2tTI/AAAAAAAAABc/1HxEqNdkxUU/s1600/stamp.png> >> >> >> Hope it helps, >> >> >> Regards, >> >> Michela >> >> >> -- --- 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.
