Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yea. This is an easy one. We use both.

For our “session” records, it’s a UUIDv7. This sorts beautifully, and if I wanted to, I could look at a log and easily see all the entries in a particular session.

For a larger db, we just need unique entries and at least in Dynamo, it is an advantage to equally distribute them as much as possible. UUIDv4 there.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: