Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Discussion: cuid2 vs ulid? - Drizzle Team
DT
Drizzle Team
•
3y ago
•
7 replies
Paul
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
PostgreSQL column types - DrizzleORM
Drizzle ORM
|
%s
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
how to add ulid compatibility to postgres?
DT
Drizzle Team / help
3y ago
How do I get insertId from table using cuid2
DT
Drizzle Team / help
3y ago
Explanation on execute() vs all() vs get() vs run()
DT
Drizzle Team / help
3y ago
Query vs Select
DT
Drizzle Team / help
3y ago