Yes, if you can use Java with plocal connection (avoiding tcp/ip) it would be much faster.
Best Regards, Luca Garulli VP OrientDB <http://orientdb.com/> On 2 October 2017 at 12:10, Maxim Nikolaev <[email protected]> wrote: > Thank you! After implementing your recomendation now script creates 450 + > Edges per sec. > > May be another API ( JAVA or Gremlin ) will be faster than python pyorient > ? What about threading ? > > понедельник, 2 октября 2017 г., 1:18:34 UTC+3 пользователь Maxim Nikolaev > написал: > >> Have two classes: >> Person >> Address. >> I want create Edge where Person.AddressId = Address,Id >> Person - 20 million Vertex >> Address - 40 million Vertex >> >> Person have sub-classes as people, phone and another >> >> Code : >> >> allrecord = client.command("select count(*) from Person") >> for i in range(0,count-1): >> start_v = '' >> result_v = '' >> start_v = '#731:' + str(i) >> Start_SysId_object = client.command("select AddressId from Person where >> @rid=%s" % start_v) >> try: >> Start_SysId_object_str = >> str(Start_SysId_object[0].oRecordData['AddressSysId']) >> except: >> continue >> if Start_SysId_object_str != '': >> Found_objects = client.command("select @rid from Address_Larix where >> SysId=%s" % Start_SysId_object_str) >> else: >> continue >> res_len = len(Found_objects) >> if (res_len >= 1): >> for j in range(res_len): >> result_v = str(Found_objects[j].oRecordData['rid']) >> z = client.command("create EDGE LiveIn FROM %s TO %s " % >> (start_v, result_v)) >> else: >> >> It work very slowly , 1 -2 edge per second. >> >> Also I try create Link , but it creating 2 days and not success. >> >> >> How to fast create EDGE ? >> >> -- > > --- > 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.
