-
-
Notifications
You must be signed in to change notification settings - Fork 395
Using [KEY] Id= Guid.CreateVersion7(); #1996
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
Comments
You can control the |
That's really practical thank you ! |
UUIDs are currently specified in RFC 9562. In section 6: UUID Best Practices: 6.13 - DBMS and Database Considerations, they state that:
Also, in section 6: UUID Best Practices: 6.11 - Sorting, they state that:
I generally agree with that assessment and there should be no downsides and only upsides to storing UUIDs in binary format, if you are processing them mostly programmatically. Pomelo also ships its own client-side UUID/GUID generator in MySqlSequentialGuidValueGenerator, so you don't have to manually generate your own UUIDs/GUIDs. The implementation is still based on RFC 4122 however, and should be slightly modified to specify the newer version variants introduced in RFC 9562 instead of version 4 (random). |
I'm using the uuidv7 as PK.
Pomelo is mapping them to char(36) in MariaDB, wouldn't it be better to bind them to bin(16) ?
I feel that would be more efficient no ?
Please tell me if I'm missing something !
The text was updated successfully, but these errors were encountered: