Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lepetitchef
· 4y ago · 0 comments
Fun improvement from my project a long time ago, uuid has 36 char and to save space, we created a shorten version by removing all the dash character in uuid. The result is 4 char could be removed, the field in MySQL table only needs 32 char.
Comments
[–]
isoprophlex
4y ago
The point is, a uuid contains 128 bits of data, so a varchar(32) is still somewhat excessive
[–]
Too
4y ago
Why varchar over char? The length is always the same.
[–]
isoprophlex
4y ago
Yeah, true. My bad. I'm used to calling everything TEXT.