I could not find any cache config setting where one can provide the primary
key column name or affinity column name of a given cache.

How does ignite identify that column provided in select query's where
clause is a primary key or affinity key?

Can you give an example?


Thanks,
Prasad


On Wed, Aug 22, 2018, 1:36 AM vkulichenko <valentin.kuliche...@gmail.com>
wrote:

> Prasad,
>
> Affinity key is always a part of primary key. For example, in your case
> primary key consists of two fields - id and subscriptionId. Therefore you
> can query by primary key without providing the affinity key. On the other
> hand, however, query can be routed to a single node even if only affinity
> key is provided in select clause.
>
> -Val
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to