Hi, I do this: //Comprobamos si existe ya elemento Composition padre para esta composicion-version String queryComposition = "select from Composition where idComposition = '" + idComposition + "' "; Iterable<OrientVertex> result = graph.command(new OSQLSynchQuery<OrientVertex>(queryComposition)).execute(); //Si existia if (result.iterator().hasNext()){ .... ....}
El viernes, 2 de diciembre de 2016, 20:19:32 (UTC+1), l.garulli escribió: > > Ok, when you create edges, how do you look for a vertex if it already > exists? > > Best Regards, > > Luca Garulli > Founder & CEO > OrientDB LTD <http://orientdb.com/> > > On 1 December 2016 at 14:22, Aceitunas y encurtidos Quijote < > encurtid...@gmail.com <javascript:>> wrote: > >> If I am doing searches to add edges and I do not have indexes >> >> El jueves, 1 de diciembre de 2016, 13:02:09 (UTC+1), l.garulli escribió: >>> >>> Are you doing lookups and in this case, do you have indexes defined on >>> the lookup fields? >>> >>> Best Regards, >>> >>> Luca Garulli >>> Founder & CEO >>> OrientDB LTD <http://orientdb.com/> >>> >>> On 1 December 2016 at 08:48, Aceitunas y encurtidos Quijote < >>> encurtid...@gmail.com> wrote: >>> >>>> Hello, you are finished inserting: >>>> Inserted 1000 EHRs, 100000 compositions in 58062579 ms. >>>> >>>> The size of the database is 940mb >>>> >>>> -- >>>> >>>> --- >>>> 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 orient-databa...@googlegroups.com. >>>> 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 orient-databa...@googlegroups.com <javascript:>. >> 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 orient-database+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.