this post was submitted on 06 Jun 2026
8 points (100.0% liked)

General Programming Discussion

9932 readers
7 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 7 years ago
MODERATORS
top 1 comments
sorted by: hot top controversial new old
[–] SmoothLiquidation@lemmy.world 3 points 1 week ago

This goes to show that using uuid4 is not a good thing for db tables, but that is what uuid7 was designed for. Also using ROWID or autonumber or whatever built in system the database is using is the best bet. Only use uuid7 if you need distributed inserts and you want the clients to be able to generate their own keys.