Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
mongodb-2.4
-
None
Description
http://docs.mongodb.org/manual/use-cases/storing-log-data/
Shard by Combine a Natural and Synthetic Key
MongoDB supports compound shard keys that combine the best aspects of sharding by a evenly distributed key in the set and sharding by a random key. In these situations, the shard key would resemble
where, path is an often used “natural key, or value from your data and ssk is a hash of the _id field.
how can we generate a ssk during insert ?