1
votes

I am new to Apache Ignite and I am planning to use ignite for one of my application. But, I am stuck with one use case (may be very basic).

Use Case: I have two entities Employee and Organisation. Using Collocation, I can store employees belongs to one Oganisation on one Node. But how do I read all employees belongs to one Orgnisation using the Organisation key? I don't want to send the query to all the nodes in cluster for reading.

1

1 Answers

0
votes

You can send query to partition owner by using ignite.compute().affinityCall(any key with this affinity key or partition id).

Please note that partitioning data over organization id is not recommended, since it will likely cause uneven data distribution between partitions.