jeudi 4 décembre 2014

choosing shard key with compound index field


I have a compound key with field articleId_1_host_1_timeStamp_1_isIndia_1_location_1


Cardinality of fields is articleId is has 20000 different value host has 17 value timestamp is increasing field with time


I want to use articleId_1_host_1_timeStamp_1 this as shard key. Could you please suggest if i can use this as shard key with timestamp field in it. Also do i need to create a different index using these three fields or i can use the above compound key with shard key of of first three fields.





Aucun commentaire:

Enregistrer un commentaire