Hi Matus, every document/vertex/edge is stored in a cluster that directly belongs to its class. So Project documents will be stored in project cluster and Team documents will be stored in team cluster by default. When you execute a query, the result is the union of all the class and subclasses and their clusters.
If you define an index on the parent class, also records of subclasses will be indexed in the same index. If you define indexes on the subclasses, when querying the parent class also these indexes will be used for optimization (only one level hierarchy at this stage, but in next releases it will be extended) Regards Luigi 2015-06-01 15:04 GMT+02:00 Matus Zeman <[email protected]>: > Hi there! > How data distribution works among extended classes? > Imagine I extend Project and Team from V. > When I create two Project docs and two Team docs - are these docs stored > in appropriate clusters for both classes Project, Team? What data is > actually stored in V cluster? > When I `SELECT FROM V` is it UNION of all Project and Team documents? > > Thanks for clarification, > Matus > > -- > > --- > 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.
