Discussion: cuid2 vs ulid?

Is it better to have a sortable primayKey like ulid but leak the creation date? Or a non-sortable and slower one for enhanced security? Which is best for production apps?

The section here in the docs references cuid2, but not ulid interestingly.
https://orm.drizzle.team/docs/column-types/pg#constraints--defaults
Was this page helpful?