Ciao!
dalla documentazione di mongoDB (http://docs.mongodb.org/manual/core/sharding-shard-key/) leggo
sharded systems cannot enforce cluster-wide unique indexes unless the unique field is in the shard key.
Non sono sicuro di capire bene. Se ho il seguente unique index {a,b,c,d} e la seguente sharded key {a,b},
l'univocità di {a,b,c,d}è rispettata su tutto il cluster?
La documentazione dice anche:
MongoDB does not support unique indexes across shards, except when the unique index contains the full shard key as a prefix of the index. In these situations MongoDB will enforce uniqueness across the full key, not a single field.