开发者

What are the performance impications of utf8_bin vs utf8_general_ci collations in mysql?

开发者 https://www.devze.com 2023-02-16 12:31 出处:网络
I am working on a database, where the collation for all text fields seems to be utf8_general_ci.There 开发者_开发技巧are cases where primary and foreign keys are collated utf8_general_ci (such as a se

I am working on a database, where the collation for all text fields seems to be utf8_general_ci. There 开发者_开发技巧are cases where primary and foreign keys are collated utf8_general_ci (such as a session_id ). Does it degrade performance to use a case-insenstive collation on columns where binary comparisons are fine?


Yes, of course it's going to be slower to do more work. Whether the difference is significant to your application is another question.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号