Are Multi-column Primary Keys in MySQL a optimisation problem?

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2009-10-06T15:02:43Z Indexed on 2010/05/20 20:30 UTC
Read the original article Hit count: 247

Filed under:
|
|

Been looking into using multi-column primary keys and as performance is extremely important with the size of traffic and database I need to know if there is anything to consider before I start throwing out the unique ID method on many of my tables and start using mulit column primary keys.

So, what are the performance/optimisation pros/cons to using multi column primary keys versus a basic single column, auto-inc primary key?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about compound-primary