Hi dkarachentsev,

I had tried below way to implement affinityKey..

cache1.put(new AffinityKey<>(pk0, eqID),
value2);
cache2.put(new AffinityKey<>(pk, eqID), value2);


But after doing above. full data was not getting loaded in cache . It was
loading only 2 records and getting stuck there only .



Regards
Tejas

On Wed, Dec 28, 2016 at 3:01 PM, dkarachentsev <[email protected]>
wrote:

> Hi Tejas,
>
> You may do the following:
>
> cache1.put(eqID, value1); or cache1.put(new AffinityKey<>(pk0, eqID),
> value2);
> cache2.put(new AffinityKey<>(pk, eqID), value2);
>
> In that case keys in Cache 2 will be collocated with keys in Cache 1.
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Affinity-Key-tp9772p9775.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Reply via email to