Composite Primary Key performance drawback in MySQL
INSERT and UPDATE performance varies little: it will be almost same for (INT) and (INT, INT) keys. SELECT performance of composite PRIMARY KEY depends on many factors. If your table is InnoDB, then the table is implicitly clustered on the PRIMARY KEY value. That means that searches for both values will be faster if the … Read more