[SERVER-6831] Reverse time in default ObjectId as an option for sharding Created: 23/Aug/12  Updated: 13/Oct/15  Resolved: 23/Aug/12

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Trivial - P5
Reporter: mark nielsen Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

any


Issue Links:
Related
Participants:

 Description   

Sequential object ids tend to create hotspots in a sharded environment. Add the ability to reformat the default object id to make it more pseudo-random. If the time portion of default object id were reversed, then pre-ranging shards would be possible without making hotspots. For example, ten shards, 0 to 9 would be easy to setup to approximate getting rid of hotspots.

In the config file for mongodb, perhaps specifying how the default object should be would be nice. Usually people have to specify the object id in software to get around not being able to shard easily straight out of the box. It would be nice if the default object id would make sharding easy out of the box.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 23/Aug/12 ]

SERVER-2001 will do this for object ids

Generated at Thu Feb 08 03:12:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.