We are considering switching to MySQL for our application. Our code makes extensive use of Guids. What data type does the MySQL Connector for .NET map Guids to?
We are considering switching to MySQL for our application. Our code makes extensive use
Share
It turns out that MySQL supports writing
Guidsto the database as eitherCHAR(36)orBINARY(16).It also turns out that
CHAR(36)is space inefficient andBINARY(16)is processor inefficient if you have a lot of rows in your table. Performance is horrible because it makes 16 byte comparisons instead of a 128-bit integer comparison.We decided not to go with MySQL.