I have a simple user table, I think that the maximum users that I am going to have are 300,000.
I am currently using:
CREATE TABLE users ( id INT UNSIGNED AUTOINCREMENT PRIMARY KEY, ....
Of course, I have many other tables for which users (id) are FOREIGN KEY.
I read that since id will not use the full maximum of INT, it is better to use: MEDIUMINT and this will give better performance.
It's true?
(I am using mysql on Windows Server 2008)
performance mysql datatable
aviv
source share