Will be scanning the class hierarchy with a filter on the @class field?
Or will the same behavior as for clusters?

I'll try to suggest the following approach:
select from cluster:some_cluster - selected data from cluster (so works now)
select from class:some_class - selected data from class (all clusters for 
class) without class hierarchy
select from some_class - selected data from class hierarchy (so works now)

On Wednesday, June 18, 2014 5:22:10 PM UTC+3, Andrey Lomakin wrote:
>
> Oh I see Dmitriy I am sorry,
> Could you try @class = 'BaseClass' as condition ?
>
>
> On Wed, Jun 18, 2014 at 4:22 PM, Dmitry <[email protected] <javascript:>> 
> wrote:
>
>> Hmm...
>>
>> From docs: "Used to check if the record extends a class"
>> I understand that: MyAccount instanceof BaseAccount is true. Because 
>> MyAccount extend BaseAccount Is that so?
>>
>> But I want to select only BaseAccount records.
>>  
>>
>> On Wednesday, June 18, 2014 3:55:43 PM UTC+3, Andrey Lomakin wrote:
>>
>>> Hi,
>>> You can sort out all other classes by instanceof operator 
>>> https://github.com/orientechnologies/orientdb/wiki/SQL-Where#operators .
>>>
>>>
>>> On Wed, Jun 18, 2014 at 3:19 PM, Dmitry <[email protected]> wrote:
>>>
>>>>
>>>> Hi!
>>>>
>>>> Suppose I have a class hierarchy, such as MyAccount extends BaseAccount.
>>>>
>>>> Can I read records of concrete class without class hierarchy?
>>>>
>>>> I mean:
>>>> 1) select from MyAccount (only)
>>>> 2) select from BaseAccount (only)
>>>> 3) select from BaseAccount (including MyAccount)
>>>>
>>>> Question regarding point 2.
>>>>
>>>> Thanks.
>>>>
>>>> -- 
>>>>
>>>> --- 
>>>> 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.
>>>>
>>>
>>>
>>>
>>> -- 
>>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> 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/d/optout.

Reply via email to