Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CUID as @AutoPopulated @Id #3228

Open
goeh opened this issue Nov 14, 2024 · 0 comments
Open

Support CUID as @AutoPopulated @Id #3228

goeh opened this issue Nov 14, 2024 · 0 comments

Comments

@goeh
Copy link

goeh commented Nov 14, 2024

Feature description

Today UUID is supported by Micronaut Data as auto generated primary keys. It would be great to also have support for CUIDs.

"CUID is a more modern approach to generating unique identifiers, designed to be more collision-resistant than UUIDs. CUIDs are shorter, making them more efficient to use in databases and easier to handle in URLs. They are also sequential to a degree, which can help with database indexing performance."

There is no CUID2 implementation i Java SDK so Micronaut would have to supply its own.

https://www.codu.co/articles/integers-uuid-guid-cuid-and-nanoid-explained-z_1mombc
https://dev.to/turck/comparing-uuid-cuid-and-nanoid-a-developers-guide-50c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant