[DOCS-1646] Need a better explanation on Synthetic Key Created: 26/Jun/13  Updated: 30/Oct/23  Resolved: 30/Mar/15

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: mongodb-2.4
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Major - P3
Reporter: Hari Assignee: Michael Paik
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 7 years, 29 weeks ago

 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

{ path: 1 , ssk: 1 }

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 ?



 Comments   
Comment by Emily Hall [ 27/Jul/16 ]

Closed for housekeeping on 7/27/2016 by Emily Hall.
If you require additional support, please open a new ticket for prioritization.
Thanks,
Emily

Comment by Githook User [ 30/Mar/15 ]

Author:

{u'username': u'mpaik', u'name': u'Michael Paik', u'email': u'michael.paik@10gen.com'}

Message: DOCS-1646
Branch: master
https://github.com/mongodb/docs-ecosystem/commit/c70fa80e04d2540050f5db045cb8802f7d62e0f2

Generated at Thu Feb 08 07:41:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.