Dendarii
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Otter@lemmy.ca to Programming@programming.devEnglish · 10 months ago

8 versions of UUID and when to use them

www.ntietz.com

external-link
message-square
29
fedilink
123
external-link

8 versions of UUID and when to use them

www.ntietz.com

Otter@lemmy.ca to Programming@programming.devEnglish · 10 months ago
message-square
29
fedilink
TIL: 8 versions of UUID and when to use them | nicole@web
www.ntietz.com
external-link
  • 𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.dev
    link
    fedilink
    arrow-up
    12
    ·
    10 months ago

    At the company I work at we use UUIDv7 but base63 encoded I believe. This gives you fairly short ids (16 chars iirc, it includes lowercase letters) that are also sortable.

    • shotgun_crab@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      10 months ago

      I’ll be borrowing that little trick

      • 𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        10 months ago

        https://github.com/TheArchitectDev/Architect.Identities

        Here’s the package one of our former developers created. It has some advantages and some drawbacks, but overall it’s been quite a treat to work with!

    • RonSijm@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      10 months ago

      base63? I’d guess you’d mean base64?

      Anyways, doesn’t that fuck with performance?

      I’m using this in production: RT.Comb - That still generates GUIDs, but generates them sequential over time. Gives you both the benefits of sequential ids, and also the benefits of sequential keys. I haven’t had any issues or collisions with that

      • 𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        10 months ago

        It’s Base62 actually, misremembered that. It’s to avoid some special characters iirc. And no, performance is fine.

        We’re using this: https://github.com/TheArchitectDev/Architect.Identities

Programming@programming.dev

programming@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 78 users / day
  • 1.04K users / week
  • 2.86K users / month
  • 7.11K users / 6 months
  • 1 local subscriber
  • 20.1K subscribers
  • 1.46K Posts
  • 19.8K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org