I am creating an Innodb table with four columns.
Table
column_a (tiny_int)
column_b (medium_int)
column_c (timestamp)
column_d (medium_int)
Primary Key -> column_a, column_b, column_c
From a logical standpoint, columns A, B, C must be made into a PK together.However, to increase performance and be able to read directly from the index (using index) I am considering a PK that comprises of all 4 columns (A, B, C, D).
QUESTION
What would the performance be of appending an additional column to the Primary Key on an Innodb table?
CONSIDERATIONS
- Surrogate primary keys are absolutely out of the question
- No other indexes will exist on this table
- Table is read/write intensive (both about equal)
Thank you!