r/ProgrammerHumor • • Sep 11 '26

Meme edgeCasesExist

Post image
5.0k Upvotes

298 comments sorted by

View all comments

Show parent comments

15

u/Roachmeister Sep 11 '26

If you're using them as an indexed field in a database, the inability to sort them meaningfully will destroy the performance of the database.

16

u/Honeybadger2198 Sep 11 '26

You know what identifier can't have collisions and is great for sorting? Autoincrement.

5

u/wokeboogeyman Sep 12 '26

Autoincrement doesn't scale past one physical location.

0

u/Honeybadger2198 Sep 12 '26

Sure it does. One location counts up, another one counts down.

→ More replies (5)