Hacker News new | ask | show | jobs
by lmm 370 days ago
It's actually fairly common to see this problem crop up in systems that are using a database table as a queue (which is a bad idea for many reasons, but people still do it) in which case the number of live rows in the table can be fairly small.
1 comments

If a SQLServer instance is killed unceremoniously it adds 1000 to the pk increment.
I'm trying not to imagine the poor SQL Server that has crashed one or two million times and hence pushed the ID values into the billions!
haha—somewhere out there it’s crashing right now. Keep it in your thoughts.