I want to insert each visitor country into my database. Maxmind returns 2 ISO countries ISO, which I could store in VARCHAR(2) , which will use 2 bytes, or, alternatively, I can use UNSIGNED TINYINT , which will use 1 byte, and will be the identifier from the table with all countries .
However, I hit a punch; I need a MyISAM mechanism for quick inserts, but MyISAM does not support FOREIGN KEYS , so I assume that for each insert I will need to make a selection in the country table to get the country identifier.
I do not know what is the best option, I absolutely need to use MyISAM , since there will be many inserts, but I do not want to do SELECTs to get the country identifier.
source share