Now works and it works very fast! Thank you. On Tuesday, December 9, 2014 2:54:00 PM UTC-5, Emin Agassi wrote: > > Luca > I grabbed the latest distribution from SNAPSHOT: > orientdb-community-2.0-20141209.184753-457-distribution.zip > <https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-community/2.0-SNAPSHOT/orientdb-community-2.0-20141209.184753-457-distribution.zip> > I still have problems with OGraphBatchInsert class. > I first create all edges I have 3 million of them. > Then, I start setting properties for Vertexes. This is where the process > hangs. It does not seem to move anywhere. > I see java process doing something but it does not move beyond the first > item in the list. > I am not sure what is wrong. > Any ideas? > > On Tuesday, December 9, 2014 11:02:59 AM UTC-5, Lvc@ wrote: >> >> Hi Emin, >> Please use 2.0-SNAPSHOT, not 2.0-M3: >> >> >> https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-community/2.0-SNAPSHOT/ >> >> Lvc@ >> >> >> On 9 December 2014 at 16:23, Emin Agassi <[email protected]> wrote: >> >>> Hi Luca, >>> I just tried this new class and it seems that if I do not set any >>> properties on the Vertexes, they are not getting created in the DB. In the >>> example below, Vertex 1L is not created in the DB even though the Edge does >>> point to it. I checked the DB after the load. >>> >>> OGraphBatchInsert batch = new >>> OGraphBatchInsert("plocal:D:/orientdb-community-2.0-M3/databasesTestLoad","xx","xx"); >>> batch.begin(); >>> >>> HashMap<String, Object> edgeProps = new HashMap<String,Object>(); >>> edgeProps.put("foo", "bar"); >>> batch.createEdge(0L, 1L, edgeProps); >>> >>> HashMap<String, Object> vertexProps = new >>> HashMap<String,Object>(); >>> vertexProps.put("foo", "bar"); >>> batch.setVertexProperties(0L, vertexProps); >>> >>> batch.end(); >>> >>> >>> >>> On Tuesday, December 9, 2014 10:05:30 AM UTC-5, Lvc@ wrote: >>>> >>>> Hi Emin, >>>> Look at the Javadoc of the OGraphBatchInsert class to know more. >>>> >>>> Lvc@ >>>> >>>> >>>> On 9 December 2014 at 16:01, Emin Agassi <[email protected]> wrote: >>>> >>>>> Hi Luca, >>>>> >>>>> Would you have an example code how to use the new OGraphBatchInsert >>>>> class? >>>>> >>>>> Right now I am using only the Tinkerpop Blueprints and its fairly fast. >>>>> >>>>> Thank you >>>>> OGraphBatchInsert >>>>> >>>>> -- >>>>> >>>>> --- >>>>> 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. >>>>> >>>> >>>> -- >>> >>> --- >>> 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. >>> >> >>
-- --- 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.
