Assuming that you have no choice but to use a varchar
as the primary key of a table in MySQL, is there any advantage to using a shorter varchar
length for indices, joins, foreign keys?
For example, VARCHAR(100) vs VARCHAR(255)
Assuming that you have no choice but to use a varchar
as the primary key of a table in MySQL, is there any advantage to using a shorter varchar
length for indices, joins, foreign keys?
For example, VARCHAR(100) vs VARCHAR(255)