News for hackers. Stuff that matters.
Re:Auto increment is a terrible idea by dhd415 on Thursday November 30, 2017 @09:04AM (#15815736)
The sequencing of those UUIDs resets every time Windows restarts. Given the frequency of OS and SQL Server updates that require reboots, that wasn't good enough for any of my workloads.
Re:Auto increment is a terrible idea by cm2187 on Thursday November 30, 2017 @09:10AM (#15815776)
Agree. And if you have two clusters, they will start at different IDs. Which is why I would probably prefix them with a timestamp (if it is not a sensitive information). Say the number of seconds since 1-1-2000. Fits on 32 bits, that still leaves you with 96 bit of entropy for a UUID, which is plenty to guarantee uniqueness unless you are working at massive scale.