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

Use cases for UUIDs (v4 and other) #30

Open
ctavan opened this issue Oct 7, 2019 · 0 comments
Open

Use cases for UUIDs (v4 and other) #30

ctavan opened this issue Oct 7, 2019 · 0 comments

Comments

@ctavan
Copy link
Collaborator

ctavan commented Oct 7, 2019

A collection of real-world use cases of UUIDs other than random v4 UUIDs:

Google Cloud Spanner explicitly advises NOT to use v1 UUIDs: https://cloud.google.com/spanner/docs/schema-and-data-model#choosing_a_primary_key

Use a Universally Unique Identifier (UUID). Version 4 UUID is recommended, because it uses random values in the high-order bits. Don't use a UUID algorithm (such as version 1 UUID) that stores the timestamp in the high order bits.

@ctavan ctavan changed the title Use cases for UUIDs other than v4 Use cases for UUIDs (v4 and other) Apr 6, 2020
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