Seems that you didn't declare the cluster where you add Name instances as part of "Name" class.
Please connect with the console and post here the result of this command: orientdb> info class Name Lvc@ On 31 January 2014 01:20, Andrey Yesyev <[email protected]> wrote: > Please, have a look at the first post of this thread. > > > On Thursday, January 30, 2014 7:17:11 PM UTC-5, Lvc@ wrote: > >> How you create them? >> >> Lvc@ >> >> >> On 31 January 2014 01:13, Andrey Yesyev <[email protected]> wrote: >> >>> Yes, 1000000 vertices of class Name inherited from V. >>> >>> >>> On Thursday, January 30, 2014 7:07:35 PM UTC-5, Lvc@ wrote: >>> >>>> Have you inserted any record of class "Name" ? >>>> >>>> Lvc@ >>>> >>>> >>>> On 30 January 2014 21:50, Andrey Yesyev <[email protected]> wrote: >>>> >>>>> Ok, this is my fault, I added vertices to the wrong cluster. >>>>> But why query >>>>> >>>>> *select count(*) from Name* >>>>> >>>>> return 0 vertices? >>>>> >>>>> It doesn't matter in what cluster I added them if I query by class >>>>> name, does it? >>>>> >>>>> On Thursday, January 30, 2014 2:48:35 AM UTC-5, Andrey Lomakin wrote: >>>>> >>>>>> Hi Andrey, >>>>>> Each class by definition uses separate cluster it is performed by >>>>>> default. >>>>>> >>>>>> Your mistake is that you store vertex in separate cluster not >>>>>> associated with given class (it has the same name as class) but you did >>>>>> not >>>>>> add cluster id in list of clusters for given class. >>>>>> So queries do not take this cluster in account. >>>>>> >>>>>> So if you need to have 2 clusters for given class call following >>>>>> method com.orientechnologies.orient.core.metadata.schema.OClass#add >>>>>> ClusterId. >>>>>> But probably, as I understand from your design, you need each class >>>>>> in separate cluster which is already done and you should not need to do >>>>>> any >>>>>> additional steps. >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Jan 29, 2014 at 9:53 PM, Andrey Yesyev >>>>>> <[email protected]>wrote: >>>>>> >>>>>>> I have to explain what I'm trying to do, I guess. >>>>>>> >>>>>>> I have a number of classes, all inherit Vertex. >>>>>>> MACAddress, >>>>>>> IPAddress, >>>>>>> WebHost, >>>>>>> ChatID, >>>>>>> SocialSecurityNumber, >>>>>>> EmailAddress, >>>>>>> Name, >>>>>>> PhoneNumber, >>>>>>> UKNationalInsuranceNumber, >>>>>>> X509CertificateHash, >>>>>>> PostalAddress, >>>>>>> CreditCardNumber, >>>>>>> VOIPEndpoint; >>>>>>> >>>>>>> All of those classes I intend to store in different clusters. Let's >>>>>>> say each cluster is a user defined case in our software. >>>>>>> E.g. case1, case2 etc. >>>>>>> >>>>>>> I want to be able to query nodes (vertices) by class name, for >>>>>>> example I want to get all IPAddresses, but also I want to be able to >>>>>>> query >>>>>>> all nodes that are in case1. >>>>>>> I think this is absolutely possible, according documentation I read, >>>>>>> is it? >>>>>>> >>>>>>> Thanks! >>>>>>> >>>>>>> -Andrey >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> --- >>>>>>> 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/groups/opt_out. >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best regards, >>>>>> Andrey Lomakin. >>>>>> >>>>>> Orient Technologies >>>>>> the Company behind OrientDB >>>>>> >>>>>> -- >>>>> >>>>> --- >>>>> 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/groups/opt_out. >>>>> >>>> >>>> -- >>> >>> --- >>> 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/groups/opt_out. >>> >> >> -- > > --- > 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/groups/opt_out. > -- --- 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/groups/opt_out.
