Hi Daniel, You can index all the edges, but we don't support 100% of vertex centric indexes. So for now you should create a composite index against class Knows, properties: "out" and "Intimate". Now you can do queries like:
select expand( in() ) from Knows where out = #13:093 and Intimate = true To retrieve all the incoming edges from #13:093 where Intimate is true. Lvc@ On 6 June 2014 04:17, Daniel Woo <[email protected]> wrote: > Let's say I have a Person vertex with 10k+ outgoing Knows edges to other > Person vertices, there is weight property "Intimate" ranges from 1 to 100, > and I am only interested in the close friends. In that case, can I index > the "Intimate" property on the edges, and only query top 100 friends of a > Person? > > -- > > --- > 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.
