best mysql table type for a lookup table (heavy read, no write)
i have an ip-to-country lookup table. this table is updated max once a month while开发者_如何学C read to very frequently. i currently have it as innodb. is this the best table type for a table that is pretty much only read from ?
thanks in advance.
I'd go with MyISAM. It doesn't have a lot of the features of InnoDB which makes it a little quicker if you don't need things like transaction and foreign keys. Also, MyISAM has table-level locking while InnoDB uses row-level locking, which won't make much different for a high-read low-write table.
Wikipedia has a good comparison of the two table types.
精彩评论