Performance difference between table collations in MySQL

时间秒杀一切 提交于 2021-01-28 10:10:19

问题


I know that having a different column collation impacts table performance, but I haven't been able to find any information on performance difference between table collations.

Also, what if I don't have any varchar/etc. type columns in my table, in that case does it even matter what collation is my table set to? If so what's the most robust collation to have for a table that contains only number column types?


回答1:


The table character set and collation are used as default values for column definitions if the column character set and collation are not specified in individual column definitions. from the documentation

This suggests the choice would have absolutely no impact on the performance of a table lacking columns that have collation. ...and my guess is that even in tables that have fields with collation, the general performance impact on the table is minimal in queries not filtering/joining/grouping/etc... on those fields.



来源:https://stackoverflow.com/questions/44954498/performance-difference-between-table-collations-in-mysql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!