My question is really simple:
Is there any performance penalization if I use a (VAR)CHAR
(let's say 5
) instead of an INT
in a MySQL
+ InnoDB
database. If there is, why?
Extra question: If I had to use (VAR)CHAR
as PK
, what should I use: CHAR
or VARCHAR
? And why?