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

Switch from UUID v4 to v7 #126

Open
CHE1RON opened this issue Mar 14, 2024 · 1 comment
Open

Switch from UUID v4 to v7 #126

CHE1RON opened this issue Mar 14, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@CHE1RON
Copy link

CHE1RON commented Mar 14, 2024

Describe the solution you'd like
Migrate to using UUID v7 (uuid6 package, which despite its name provides uuid7() fn) as data type for id columns.

Additional context
These articles outline advantages of v7 (as opposed to v4), and also some pitfalls of not doing so:

Link 1 comes with very detailed information about all UUID implementations (benchmarks included), Link 2 provides a well-rounded writeup on implications for PostgreSQL in particular!

@CHE1RON CHE1RON added the enhancement New feature or request label Mar 14, 2024
@igorbenav
Copy link
Owner

Very nice issue, @CHE1RON! Thanks!

@igorbenav igorbenav added the good first issue Good for newcomers label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants