No, you don't have to create an index for the subclass. To make sure, the index is being used, run the explain command on the select statement. EXPLAIN SELECT FROM S WHERE name = "some name"
On Tuesday, June 4, 2013 at 7:24:16 AM UTC-7, Riccardo Tasso wrote: > > Hi, I have a question on (guess what?) indexes and subclasses. > > I have a superclass (V) with an attribute (name) and an index on that > attribute for that class (V.name). Now I have a subclass (S). Does the > following query use the index? > > SELECT FROM S WHERE name = "some name" > > Or do I have to create a new index esplicitly for S? > > 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.
