News for hackers. Stuff that matters.
Re:Be Careful with UUID or GUID as Primary Keys by ivanhoe on Friday June 09, 2017 @04:57PM (#14524507)
Author mentions compound keys, so issue was probably with the index key prefix length, which is by default limited at 767 bytes. That limits you to a maximum of having just first 255 characters of string data indexed with utf8, but in latin1 (one byte per character) you can have 767 characters long prefix. So with latin1 it's perfectly ok to have compound index on 2 varchar(255) columns, but you can't do that with utf8. Converting from latin1 to utf8 will break all those indices.
Re:Be Careful with UUID or GUID as Primary Keys by morgo on Friday June 09, 2017 @05:07PM (#14524577)
The 767 limit is with the default row format. In 5.7 the row format changes, and allows 3000+