This document presents new time-based UUID formats which are suited for use as a database key.

  • Ephera@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    2 days ago

    Yeah, that is my understanding, too. Otherwise you’d only want to generate them on the database host, as even with NTP there will be small differences. This would kind of defeat the purpose of UUIDs.

    If you’re saying that even without NTP, just by manually setting the time, things will be fine. I mean, maybe. But I’ve seen it far too many times already that some host shows up with 1970-01-01…

    • barsquid@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 days ago

      Haha, that’s fair, someone absolutely would manage to write 1970s dates if they aren’t pulling the current time.