A Demonstration On Data Affinity Within a Coherence Cluster

(Doc ID 1052174.1)

Last updated on OCTOBER 26, 2016

Applies to:

Oracle Coherence - Version 3.3.0 to 3.7.1
Information in this document applies to any platform.
***Checked for relevance on 01-Jul-2013***


Data affinity describes the concept of ensuring that a group of related cache entries is contained within a single cache partition. This ensures that all relevant data is managed on a single primary cache node (without compromising fault-tolerance). In this demo we will use the SCOTT schema DEPT/EMP tables showing how we set up Data Affinity in Coherence using a relationship as follows:

  (Dept -> Emp)

A number of standard Coherence operations can benefit from affinity, including cache queries, InvocableMap operations, and the getAll/putAll/removeAll methods.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms