this post was submitted on 11 Feb 2025
1230 points (98.7% liked)

Programmer Humor

20039 readers
3470 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

See the post on BlueSky: https://bsky.app/profile/provisionalidea.bsky.social/post/3lhujtm2qkc2i

According to many comments, the US government DOES use SQL, and Musk is not understanding much what's going on.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 day ago

For a minute i thought you were talking about Elon and was completely following.

Ah, so data exchange between databases is a slightly different matter. First, I would recommend against using ssn as a number you exchange back and forth to sync data, as it exposes you to a greater risk of data theft. However, forcing your internal DB keys onto someone else is a a synchronization nightmare. Your internal data schema might look totally different even for the data overlap you might have.

My usual suggestion would be to assign a random uuid to each person and then just agree with each other on either which system creates new records (originates ids) or which system has priority (is the system of record) for people if there's a collision. Ultimately, you'd end up needing to compare names and addresses or phone numbers or birthdays etc. to unify records anyway. SSN is an easy cheat that gets you a lot of the way there (for Americans born after 1935) but like I said it's a security/legality risk and you still actually need to check that other stuff to verify anyway.

There's a reason why systems that join person records together is big business (mostly for advertising!) It's tricky stuff.