ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Welly Tambunan <if05...@gmail.com>
Subject Re: Sorting behaviour on Time Series data in partitioned cache
Date Wed, 23 Dec 2015 09:32:57 GMT
Hi Denis and Alexey,

Thanks for spotting that @field on the Series key. I have already changed
that one.

So after the update all the time series from the same channel id will be
However eventhough all the channel with the same id is collocated in the
same node, it's still not sorted based on the idx ?

But I found this in the documentation.


On Wed, Dec 23, 2015 at 3:20 PM, Alexey Goncharuk <
alexey.goncharuk@gmail.com> wrote:

> Hi Welly,
> A few other suggestions:
>  - If you expect your data to be collocated by chId, you need to use
> @field annotation on series key, just the way you did it with SQL fields:
> case class SeriesKey(@(AffinityKeyMapped @field) chId: UUID, idx: Long) extends Serializable
>  - You need to specify order by clause in the select condition if you want to apply additional
sorting: "chId=? order by idx"
> Hope this helps,
> AG

Welly Tambunan

http://www.triplelands.com <http://www.triplelands.com/blog/>

View raw message