D
Size: a a a
IZ
Conclusion
Don't worry about the cost of switching to using UUIDs in your tables as performance can remain good, even as your table grows to millions of rows in size. You may wish to generate type 1 UUIDs if you need to produce massive numbers of UUIDs at a time (such as an archiving process), but a sequential UUID type 4 should be fine in most situations.
$createUuidTableQuery =
"CREATE TABLE `log` (
`uuid` binary(16) NOT NULL,
`message` varchar(255) NOT NULL,
`when` int unsigned NOT NULL,
PRIMARY KEY (`uuid`),
INDEX (`when`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;";
YN
IZ
YN
YN
IZ
YN