this post was submitted on 13 Jun 2024
65 points (100.0% liked)

TechTakes

1401 readers
93 users here now

Big brain tech dude got yet another clueless take over at HackerNews etc? Here's the place to vent. Orange site, VC foolishness, all welcome.

This is not debate club. Unless it’s amusing debate.

For actually-good tech, you want our NotAwfulTech community

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Imacat@lemmy.dbzer0.com -3 points 5 months ago (47 children)

UUIDs make great primary keys in some applications. If you generated 100 trillion UUID4s, there’s about a 1 in a billion chance of finding a duplicate. Thats usually good enough for my databases.

The issue here was that they used a single UUID instead of generating a new one for each record.

[–] mawhrin@awful.systems 11 points 5 months ago* (last edited 5 months ago) (12 children)

they also stored this thing as a fucking string. looking up strings is costly.

load more comments (10 replies)
load more comments (44 replies)