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 to UUID7s #971

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Switch to UUID7s #971

merged 1 commit into from
Jan 2, 2025

Conversation

davidfischer
Copy link
Collaborator

UUID7 is a timestamp ordered UUID with some random bits. See https://www.rfc-editor.org/rfc/rfc9562.html#name-uuid-version-7. This will ensure records are timestamp ordered by the PK.

UUID7 is a timestamp ordered UUID with some random bits.
See https://www.rfc-editor.org/rfc/rfc9562.html#name-uuid-version-7.
This will ensure records are timestamp ordered by the PK.
@davidfischer davidfischer requested a review from a team as a code owner January 2, 2025 21:31
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple enough. 👍 The migrations are mostly just metadata updates and won't change the DB right?

@davidfischer
Copy link
Collaborator Author

Correct. The migrations do not change the database. They only change how data will be created in the database post-migration.

@davidfischer davidfischer merged commit 68173cd into main Jan 2, 2025
1 check passed
@davidfischer davidfischer deleted the davidfischer/switch-to-uuid7 branch January 2, 2025 22:32
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

Successfully merging this pull request may close these issues.

2 participants