Re:UUIDs are obsolete in the age of Docker
by plorkyeran on Thursday May 18, 2023 @09:23PM
(#35996648)
MongoDB eventually switched away from doing that and now just generates random numbers for the pid and machineid fields of ObjectIDs. The timestamp is still there because people rely on being able to sort on that (which is a bad idea for various reasons), but it's at least 24 bytes of randomness now.
Re:UUIDs are obsolete in the age of Docker
by starfox64_ on Friday May 19, 2023 @03:31AM
(#35998852)
When did this change? Last I checked the PHP driver still relied on the pid.
It's unlikely to happen but still possible and it has brought down some of our parallel worker pool because once you have a collision, you are bound to keep generating the same id sequence until you restart your whole process to randomize the counter again.