2015-06-17 8:19 GMT+02:00 Chris Waldron <[email protected]>:
>
> A lightweight edge is an edge that has no properties.  If I use edge
> inheritance is that a strategy to maintain lightweight edge without having
> to use a property.
>
> Say for example I used an edge "MemberOf" and I wanted to know the member
> type.
>
> If I used a property to hold the type then according to the documentation
> that would not be a lightweight edge.
>
>
That's right. The underneath difference between lightweight and regular
edges is that regular ones are represented as documents inside the
database. A lightweight edge is just a field in the outgoing node and
another field in the ingoing node, pointing each other.


> But if say I defined new edge classes that inherited from "MemberOf" say
> "UserOf extends MemberOf" then would the use of UserOf be a lightweight
> edge.
>
> Also if I query on the UserOf edge can I expect only the UserOf edges to
> be returned?
>

Yes, you right.

Cheers,
   Riccardo

-- 

--- 
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.

Reply via email to