• CodexArcanum@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    123
    ·
    edit-2
    2 hours ago

    I’m sure folks on here know this, but you know, there’s also that 10K a day that don’t so…

    What makes this especially funny, to me, is that SSN is the literal text book example (when I was in school anyway) of a “natural” key that you absolutely should never use as a primary key. It is often the representative example of the kinds of data that seems like it’d make a good key but will absolutely fuck you over if you do.

    SSN is not unique to a person. They get reused after death, and a person can have more than one in their lifetime (if your id is stolen and you arduously go about getting a new one). And they’re protected information due to all the financials that rely on them, so you don’t really want to store them at all (unless you’re the SSA, who would have guessed that’d ever come up though!?)

    It’s so stupid that it would be hilarious if people weren’t dying.

    • vormadikter@startrek.website
      link
      fedilink
      arrow-up
      24
      ·
      edit-2
      1 hour ago

      Thanks for (starting to) explain this concept to people not accustomed to how the US does their shit.

      See, where i live, we used to have for example a Tax-Number. That was a thing the taxdepartment used to identify a person. But if you move from city a to city b, that numbers changes. So if you move a lot, you will have numerous of these.
      Now, some 15 years back, the Tax-ID was introduced (fellow residents at this point will lnow it might be Germany) and this number is a one-in-a-kind ID that will only be assigned to you. They create it shortly after birth. My sons first registraion ID was this, before anyrhing else. You will also get a uniqie healthcare-ID that also works like that.

      So…how does that work in the US and why is habing a changing number that is not unique helpful? Or what is Elon not getting? I dont get it either because I dont know how this works for you.

      Thanks in advance to shed light on this.

      • mesamune@lemmy.world
        link
        fedilink
        English
        arrow-up
        19
        ·
        edit-2
        1 hour ago

        It doesn’t. There is no truely unique ID in the US.

        Source: myself. Worked on health insurance and it was hell.

        • CodexArcanum@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          4
          ·
          33 minutes ago

          It’s wild too. I’ve been in the hospital a lot lately and in addition to a bar-code wristband, every healthcare worker, before doing anything with me (the patient) will ask my full name and either birthday or address and then double-check it against the wrist band. This is to make sure, at every step, that they didn’t accidentally swap in some other patient with the same name. (Not so uncommon, lots of men have their father’s name.)

          Meanwhile in like Iceland, everyone gets assigned a personal GPG key at birth so you can just present you public cert as identification, not to mention send private messages and secure your state-assigned crypto-wallet. Not saying such a system is without flaw but it seems a lot better than what we’re doing!

      • kerrigan778@lemmy.world
        link
        fedilink
        arrow-up
        14
        ·
        1 hour ago

        The SSN is supposed to just be a number that you give your employers and the IRS so that your social security (the USs blanket retirement savings/pension system) contributions get logged correctly to you and then when you retire you can use that number to get the social security benefits that you paid into. The number has ended up being used for all sorts of things because the USA is slightly broken because it is SORT OF a unique ID number for each US citizen, except of course that it wasn’t intended to be that, SSNs are only supposed to be used from first social security contribution (first paycheck) to last social security payout (death) so naturally they can just be recycled.

        • CodexArcanum@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          4
          ·
          37 minutes ago

          This is a good summary. I had to go pull up wikipedia on it since I roughly knew that social security was a national insurance/pension kind of system but am actually hazy on details.

          The major issue with it as id (aside from DBA’s gripes about it) is that credit agencies and banks started to rely on it for credit scores and loans. You see, the US has a social scoring system (what we always accuse China of) but the only thing it tracks is how reliable you are about paying off debts. So with your home address, name, and SSN, basically anyone can take out loans or credit cards in your name. This will then damage your credit score, making it harder to get loans, buy a home, rent property, or even get a job.

          That’s why Americans are always concerned about having our identity stolen: because you don’t need a lot of info to financially ruin someone’s life.

        • vormadikter@startrek.website
          link
          fedilink
          arrow-up
          2
          ·
          36 minutes ago

          Thanks, get it now.
          So, Elon doesnt know this and thinks that multiple uses of SSN is a proof of a fraud when in reality it is just a sign for a bad system that is not used as intended or not designed as it is needed?

      • seang96@spgrn.com
        link
        fedilink
        arrow-up
        7
        ·
        1 hour ago

        When you die your social is reused and assigned to someone else eventually. This is what makes it not unique. If something were to screw up in the process the new person could have debt from the prior person for example even though it is not their debt. Another concept common is using the last 4. There are so many conflicts when using just last 4 in a database its bad design.

    • Sheridan@lemmy.world
      link
      fedilink
      English
      arrow-up
      10
      ·
      1 hour ago

      I’m in the middle of building a small Access database. I keep having to dissuade a coworker not to use people’s SSNs as the primary key for a table of persons. I didn’t even know these facts about SSNs; it just seemed like a bad idea.

      • CodexArcanum@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        7
        ·
        45 minutes ago

        I’m hardly the king of databases, but always using a surrogate key (either an auto-incremented integet or a random uuid) has done me pretty well over the years. I had to engineer a combination of sequential timestamp with a hash extension as a key for one legacy system (keys had to be unique but mostly sequential), and an append-only log store would have been a better choice than an RDBMS, but sometimes you make it work with what you have.

        Natural keys are almost always a bad idea though. SSNs aren’t natural, which is one pitfall: implicitly relying on someone else’s data practices by assuming their keys are natural. But also, nature is usually both more unique than you want (every snowflake is technically unique) and less than you’d hoped (all living things share quite a lot of DNA). Which means you end up relying on how good your taxonomy is for uniqueness. As opposed to surrogate keys, which you can assure the uniqueness of, by definition, for your needs.

        • Sheridan@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          7 minutes ago

          He’s doing a “census audit” and trying to consolidate a lot of different datasets from different sources containing the same individuals. None of the sources contain any sort of unique ID column in common so he’s using the SSN I guess to join tables? I don’t fully understand what he’s doing. I don’t think he actually has a functioning relational database setup. The few glimpses I’ve seen of his Access database looks chaotic.

          Separately I made a simple database with the same persons for the purposes of generating monthly invoices, and I gave them auto-increment IDs; my database is supposed to link to his because he wants to monitor record changes and incorporate them into his ongoing census thing. But he’s not liking my primary key and keeps wanting me to switch to SSNs so it’s easier for him to do whatever he’s doing.

  • GissaMittJobb@lemmy.ml
    link
    fedilink
    arrow-up
    50
    arrow-down
    1
    ·
    2 hours ago

    Elon starting to comment on technical matters was the moment I learned he was actually completely beyond incompetent, since I have some actual expertise on the subject. Right around the time he bought Twitter and commented publicly on its architecture.

    This is further evidence to that point

  • -☆-@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    16
    arrow-down
    2
    ·
    edit-2
    1 hour ago

    A government official known for performing a nazi salute just broadcast an ableist slur.

    Cool cool cool

  • i_stole_ur_taco@lemmy.ca
    link
    fedilink
    arrow-up
    160
    arrow-down
    1
    ·
    3 hours ago

    Elon’s shock and fury about the database key sounds like he got a report from an out-of-breath 20 year old DOGE kid who thinks they’re hot shit and discovered some massive flaw.

    Elon also seems like the kind of person that believes a database schema is all that’s needed to govern a population.

    • NocturnalMorning@lemmy.world
      link
      fedilink
      arrow-up
      26
      arrow-down
      1
      ·
      edit-2
      3 hours ago

      Database schema = “Not fraudulant”, what’s so hard about that? Login credentials don’t even need to be encrypted if you say no fraud before you log in, and cross your fingers. It’s basic programming knowledge, come on man. Also throw some salt over shoulder and slaughter a goat for good measure just in case.

  • gravitas_deficiency@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    51
    ·
    3 hours ago

    Lmao we’re gonna get to watch eel-on-musk and all of his dipshit wünderkinds speedrun through all of the pitfalls a junior DBA / data engineer is liable to make, and they’re gonna do it on prod, and prod is the US government.

    What could possibly go wrong

      • notabot@lemm.ee
        link
        fedilink
        arrow-up
        11
        ·
        50 minutes ago

        An UPDATE without a WHERE clause that doesn’t get noticed for a week or two. Your data’s hosed and you can’t really cope with reverting to your last known good backup. Bonus points if you haven’t tested your recovery procedures recently. Then he runs around screeching about how the data is obviously fraudulent and he’s a genius for finding it.

  • dan1101@lemm.ee
    link
    fedilink
    arrow-up
    200
    ·
    3 hours ago

    That’s weird, I thought I used SQL databases from government agencies regularly. Guess I was mistaken.

    • Susaga@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      178
      ·
      3 hours ago

      If you and Elon disagree about something, just assume he’s wrong about it. If you both agree on something, THEN you might be mistaken.

        • oo1@lemmings.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          12 minutes ago

          I hope the screenshot dude is also going to stop this unquestioning belief in the things people say or claim without evidence.

          Those first two paragraphs look like a tendency to prefer hero-worship to critical thought; that seems to be a fairly widespread problem in humans from long before this latest batch of demagogues.

          There’s also a hint of “I’m not an ‘expert’ in it so I can’t (be bothered) to understand anything about it” also a very depressingly common attitude.

      • dan1101@lemm.ee
        link
        fedilink
        arrow-up
        38
        ·
        3 hours ago

        Indeed. I’m starting to think I can’t trust what that Musk guy says.

      • cm0002@lemmy.world
        link
        fedilink
        arrow-up
        34
        ·
        3 hours ago

        If it’s tech he doesn’t know shit about it, I learned that years ago during the Twitter acquisition days

        He sounds like a CEO who “knows enough to fuck shit up, not enough to know how to fix it, but thinks they do” AKA the worst executive known to IT

    • athairmor@lemmy.world
      link
      fedilink
      arrow-up
      16
      ·
      2 hours ago

      Elon and DOGE should really look into all of those Oracle contracts the Fed pays for. Must be all inefficiency and fraud.

        • athairmor@lemmy.world
          link
          fedilink
          arrow-up
          7
          ·
          2 hours ago

          It would be one of the areas that would save the government a bunch of money. But, Ellison is in the Trump camp so it’s not going to happen.

        • Tja
          link
          fedilink
          arrow-up
          3
          ·
          1 hour ago

          Spinnaker? MongoDB? EnterpriseDB?

    • suyOP
      link
      fedilink
      arrow-up
      31
      ·
      3 hours ago

      Ah, a classic watch. :-)

      Elon probably thinks that SQL is MS SQL Sever, MySQL, or some such.

      • 9point6@lemmy.world
        link
        fedilink
        arrow-up
        13
        ·
        2 hours ago

        Elon probably thinks

        Not really sure he does, I think he’s clearly paying others to do that for him

        • suyOP
          link
          fedilink
          arrow-up
          2
          ·
          2 hours ago

          My bad, I forgot he doesn’t have time to think.

          Too busy being one of the best players at Path of Exile 2. Despite that he doesn’t identify the valuable loot. Or how to use the map. Or how levels work. But he’s top 50! All very believable.

    • pixxelkick@lemmy.world
      link
      fedilink
      arrow-up
      21
      arrow-down
      1
      ·
      3 hours ago

      They probably do use lots of NoSQL DBs too, which perform better for non relational “data lake” style architectures where you just wanna dump mountains of data as fast as possible into storage, to be perused later.

      When you have cases where you have very very high volume of data in, but very low need to query it (but some potential need, just very low), nosql DBs excel

      Stuff like census data where you just gotta legally store it for historical reasons, and very rarely some person will wanna query it for a study or something.

      Keep in mind when I talk about low need to query, the opposite high need us on the scale of like, "this db gets queried multiple times per minute’

      Stuff like… logins to a website, data that gets queried many times per minute or even second, then sometimes nosql DBs fall off.

      Depends what is queried.

      Super basic “lookup by ID” Stuff that operates as just a big ole KeyValuePair mapping ID -> Value? And thats all you gotta query?

      NoSql is still the right tool for the job.

      The moment any kind of JOIN enters the discussion though, chances are you actually wanna use sql now

      • Thorry84@feddit.nl
        link
        fedilink
        arrow-up
        16
        ·
        2 hours ago

        So you’re saying Relational DataBase Management Systems do really well as soon as Relations are involved?

        • yopp@infosec.pub
          link
          fedilink
          English
          arrow-up
          0
          ·
          23 minutes ago

          What’s funny is that Relational Databases in fact sucks when somewhat complex Relations are involved. Moment you step out the of the realm of Tabular data you’ll have very miserable time. Like good luck modeling and querying simple nested product catalog.

          Graph databases are better choice for truly relational data

  • Yozul@beehaw.org
    link
    fedilink
    arrow-up
    20
    ·
    3 hours ago

    SSNs are literally just handed out to hospitals and social security offices in batches and given out in sequential order. They were specifically and intentionally designed to be a terrible system of ID numbers because people actually used to care about their privacy. There are countless people who’ve gone their whole lives using the wrong social security number and gotten their benefits just fine, because unlike everyone else in this dumpster fire of a country the social security office has never been stupid enough to rely on just a single number.

    • Zink
      link
      fedilink
      arrow-up
      2
      ·
      2 hours ago

      Now now, he also has LeAdErShIp skills like taking his incorrect understandings and making the ToUgH dEcIsIoNs and being DeCiSiVe and taking RiSkS that will in no way impact his lifestyle but could destroy the careers and lives of thousands to millions of other people.

      • magic_lobster_party@fedia.io
        link
        fedilink
        arrow-up
        3
        ·
        2 hours ago

        Nah, that’s too fancy. It’s all held together by some arcane Visual Basic macro someone wrote 25 years ago right before going to retirement and no one has dared to touch it ever since.

        • justOnePersistentKbinPlease@fedia.io
          link
          fedilink
          arrow-up
          1
          arrow-down
          2
          ·
          2 hours ago

          Qbasic, if that.

          Biden is a blue dog and never cared about infrastructure. Trump cant spell the word. Obama did, but for overpriced drones and oil. Bush only did for oil and deregulated to make things worse. Clinton cut thing Bush Sr cut things. Reagan fucked everything up with “trickle down”

          Meaning the last president that did major infrastructure spending is at best Carter, Ford or Nixon.

    • ArtVandelay@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 hours ago

      with vlookups across multiple sheets to get around row limitations, that’s just common sense in MyExcelDB

  • Destide@feddit.uk
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 hours ago

    You guys are idiots, they use dbeaver and pgadmin not sql… Or maybe its Acess yes they use Acess

  • Midnitte@beehaw.org
    link
    fedilink
    English
    arrow-up
    45
    ·
    3 hours ago

    Musk doesn’t understand database design (or the existence of PRIMARY KEY ()), surprise.

  • Im_old@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    3 hours ago

    Also that’s not how deduplication works.

    He means/thinks that SSN is not unique (which is not a problem, just different design).

    Of course he’s wrong about lots of stuff, just the nerd in me could not not explain it.

    • dohpaz42@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      edit-2
      2 hours ago

      I imagine he’s looking at a payments table where there is a non-unique key to relate a citizen to each payment.