datalevin

Jack Arrington 2026-03-14T03:18:02.021269Z

If I want to use UUIDs as my entity IDs, I assume the way to go about that is to just generate one with (random-uuid) and then set :db/id to that value?

Huahai 2026-03-14T03:22:34.940839Z

:db/id is system internal entity id (a long). You are not supposed to assign it an uuid.

Huahai 2026-03-14T03:23:55.898059Z

You can have a unique attribute for that uuid.

👍 1
Jack Arrington 2026-03-14T04:35:58.935729Z

Okay, got it. I worried that might be the case but couldn't see it directly mentioned in the docs.