Wow, this is a hidden feature I've never heard of! It seems cool! The order of edges is insertion order or can be somehow tuned (by edge label, out/in vertex properties)?
2014-11-05 10:51 GMT+01:00 Luigi Dell'Aquila <[email protected]>: > Hi Stefan, > > I think this can help you > > > http://www.orientechnologies.com/docs/last/orientdb.wiki/Graph-Database-Tinkerpop.html#ordered-edges > > Luigi > > > 2014-11-05 10:35 GMT+01:00 <[email protected]>: > > bump ... again >> >> >> On Tuesday, 4 November 2014 08:10:37 UTC, [email protected] >> wrote: >>> >>> >>> And on more. >>> >>> I can fetch my Vertex easily using the Java API, I can traverse to >>> adjacent vertices, via edges, and do most any thing. >>> But if I want to avoid iterating through thousands of edges to get to >>> the last one I'm stuck and I have to move to SQL to get it, that's just not >>> right. >>> >>> Regards, >>> -Stefan >>> >>> On Tuesday, 4 November 2014 08:08:17 UTC, [email protected] >>> wrote: >>>> >>>> Hi Riccardo, >>>> >>>> I'm using OrientDB embedded in my application and even though I can >>>> certainly use SQL I think the Java API ought to be >>>> seasoned/maintained/versatile enough to do the things that can be done in >>>> sql, after all the SQL queries must be executed in Java there somewhere. >>>> - [a bit far fetched] If the SQL implementation also needs to rely >>>> on the iterator for retrieving the last entries then that is an issue on >>>> it's own. >>>> >>>> Best of all would be for Blueprint to support indexing of edges and >>>> range-retrieval of edges. >>>> >>>> And, as a bare minimum, I feel that asking questions here deserves an >>>> answer or explanation regarding why this is not possible. >>>> >>>> Regards, >>>> -Stefan >>>> >>>> >>>> >>>> On Tuesday, 4 November 2014 07:13:44 UTC, Riccardo Tasso wrote: >>>>> >>>>> Can I ask you why are you looking for a only API solution? >>>>> If you were using a RDBMS I don't think you would avoid using SQL. >>>>> >>>>> Cheers, >>>>> Riccardo >>>>> >>>>> 2014-11-04 7:10 GMT+01:00 'Curtis Mosters' via OrientDB < >>>>> [email protected]>: >>>>> >>>>>> Mhh I have no solution but would also interest me if there is a >>>>>> faster solution. Currently also have no other idea how to compute the >>>>>> latest edge. And did not see any method to solve it faster. >>>>>> >>>>>> Am Montag, 3. November 2014 16:28:44 UTC+1 schrieb >>>>>> [email protected]: >>>>>> >>>>>>> bump! >>>>>>> >>>>>>> On Friday, 7 March 2014 15:33:39 UTC, [email protected] >>>>>>> wrote: >>>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I think recent changes in the SQL approach makes this possible but >>>>>>>> the Java API seems to be a narrow subset. >>>>>>>> >>>>>>>> Am I wrong? >>>>>>>> >>>>>>>> Regards, >>>>>>>> -Stefán >>>>>>>> >>>>>>>> >>>>>>>> On Thursday, 6 March 2014 08:39:17 UTC, [email protected] >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> bump >>>>>>>>> >>>>>>>>> On Wednesday, 5 March 2014 11:10:07 UTC, [email protected] >>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> Hi, >>>>>>>>>> >>>>>>>>>> I need to get the most recently added edge for a certain edge >>>>>>>>>> type. >>>>>>>>>> >>>>>>>>>> I there a better alternative for this to get to the last (most >>>>>>>>>> recent) IN edge: >>>>>>>>>> >>>>>>>>>> Edge mostRecentEdge = null; >>>>>>>>>> for (Edge next : oVertex.getEdges(Direction.IN, "CONNECTS_FROM")) >>>>>>>>>> { >>>>>>>>>> mostRecentEdge = next; >>>>>>>>>> } >>>>>>>>>> >>>>>>>>>> Regards, >>>>>>>>>> - Stefan >>>>>>>>>> >>>>>>>>>> -- >>>>>> >>>>>> --- >>>>>> 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. > -- --- 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.
