Skip to content

I want to use mysql, and also use uuid for the primary key. Is this the right tweak? #1436

Answered by elau1004
east4ming asked this question in Questions
Discussion options

You must be logged in to vote

You may have a use case for it but is your application globally distributed where a centralized generation of a unique ID for the primary key will be a bottleneck?
If your answer is NO, I suggests not to use UUID. An IDENTITY is much easier to work with. On a straight sprint, comparing 4 bytes of INT32 is going to be 4X faster than comparing 16 bytes of UUID.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by east4ming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants