That would work, Alessandro, but it means traversing and expanding all
call_times without using the index.

Giulia - I've made some progress: this query shows that the index *does*
index the fields:
select from index:aggregatedphonecall_call_times

I get a table of *individual* keys and rids! That's a good thing...

Now the only problem is that, for some reason, adding "WHERE key <
"2015-08-30 20:21:07" doesn't work properly... probably has something to
with key being a date field.

Will update if I find a solution.
Thanks for the suggestions all

On Fri, Sep 4, 2015 at 12:07 PM, <[email protected]> wrote:

> Hi Lior,
> I hope that this query can help you
>
> select from AggregatedPhoneCall where call_times in ( select value from
> (select expand(call_times) from AggregatedPhoneCall) where value between
> "2015-08-30 20:04:00" and "2015-08-30 20:08:00")
>
> Kind regards,
> Alessandro
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "OrientDB" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/orient-database/PPV2B9PZ_ng/unsubscribe.
> To unsubscribe from this group and all its topics, 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.

Reply via email to