title: Mongo DB Multiple Primary Keys
body: <p>I want to have a multiple fields in mongodb as primary keys so that there won't be any duplicates with compound key. 
  In normal mongodb this can be achieved using ensureIndex() function.
  I want to know how this can be done in shard environment and i can't keep the compound key as shard key.</p>