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

Like previously when i was using cassandra , the partition key was uidx and composite key was (uidx, card_type) … so it was easy to maintain ttl for each record .

And this made sure that all user records goes to a same node.

How can this be achieved in aeropsike ? Does secondary index makes sure that records goes to same node ?

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.

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.

© 2015 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.