Skip to main content

One doc tagged with "schema-design"

View all tags

Design Keys for Colocation

Three mechanisms control where related entries live in the cluster: composite keys with @AffinityKeyMapped, the AffinityKey wrapper, and CacheKeyConfiguration. Run all three against a Customer and Invoice schema, watch each produce the same colocation outcome, and learn which to pick for a real schema.