How to make sure a record with composite key goes to same partition?

Aerospike doesn’t provide an API to multiple keys share the same node. An active discussion on this topic can be found here: Composit Key.

Iirc, there is a similar discussion in feature requests.