3 ms·
I've used the BSON Java ObjectId for distributed primary key generation for a long time. Really useful for distributed systems.
by hanszarkov 3y ago
I've used the BSON Java ObjectId for distributed primary key generation for a long time. Really useful for distributed systems.
- salil999 3y agoIt's specifically advised NOT to use ObjectId for distribution. This data type has a notion of time embedded in it which results in monotonically increasing ObjectIds. Use UUID or a hashed version of the ObjectId