ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Magda <dma...@gridgain.com>
Subject Re: How to retrieve data from Collocated Cache with Simple Key
Date Wed, 08 Jun 2016 12:44:53 GMT
Hi,

Please see below

> On Jun 8, 2016, at 2:36 PM, Kamal C <kamaltarget@gmail.com> wrote:
> 
> In `put` operation, we have full object to insert so construction of PersonKey /
>  AffinityKey is not a problem. But, during `get` operation, we may have only 
> the simple key to retrieve data.
> 
Introduce a special cache that will contain mapping of “personId” to “orgId”.

During a ‘get’ operation you can find in constant time “orgId” using this cache and
after that create a valid AffinityKey and get a Person in constant time using this valid key.

—
Denis



Mime
View raw message