Re:Showdown: MySQL 8 vs. PostgreSQL 10
by nvivo on Wednesday May 23, 2018 @06:02PM
(#17138780)
MySql doesn't have a UUID data type, the UUID() function returns a varchar. The way you store it is mostly preference and driver defaults. The C# driver used to handle binary(16) as Guids, then they deprecated that in favor of CHAR(36). But when dealing with a bilion rows, each byte counts and I'll favor binary(16) because it's smaller and that helps with the index sizes and memory usage.
[ Parent
| on HN ]
but it supports conversion to binary (+shuffle to keep order) using "uuid_to_bin"