Composite Partition key

In the case of a Primary key where the partition key is composite

e.g. PRIMARY KEY ((tracking_number, carrier_moniker, retailer_moniker), event_date, status_code)

Do the position of the fields within the partition key matter (for partition selection ) or is the hash created from a combination of all partition keys?

Hi @Sherwin_Pinto

The position of the keys within the partition columns of the key does not matter. The hash is created from a combination of all the partition keys.

regards,
Kannan

1 Like