My main issue is that after we expanded CHAR(50) to CHAR(64) we started receiving timeouts on internal backup queries. The record size is a few kb and the database is very very big, so this column that is a primary key must be the reason for our trouble.
I searched through the internet but I found only selecting the type of the keys or comparison of CHAR vs VARCHAR but nothing about the optimal size. For example, is there some special optimization in MYSQL that for indices smaller than, let's say, 60 bytes it uses some for of caching while for larger it starts swapping stuff?
Any help would be appreciated. Even those suggesting there is no difference and simply the % of time spent on join was increased by % of the index size.
EDIT
THIS IS NOT THE ANSWER FITTING THE QUESTION however I have found out the reason our change got a HUGE performance hit.
We expanded column using
ALTER TABLE table MODIFY job_id CHAR(64);
This caused CHARACTER SET
fall back to the default one = utf8mb4
dropping previous latin1
That would conclude my research, but I will leave this question opened for anyone that would be able to answer the impact on resizing key column.
This question does look for suggestion on type change.
Thank you all for their time and inputs!