Index a mysql table of 3 integer fields
Posted
by Doori Bar
on Stack Overflow
See other posts from Stack Overflow
or by Doori Bar
Published on 2010-05-27T19:18:08Z
Indexed on
2010/05/27
19:21 UTC
Read the original article
Hit count: 135
mysql
I have a mysql table of 3 integer fields. None of the fields have a unique value - but the three of them combined are unique.
When I query this table, I only search by the first field.
Which approach is recommended for indexing such table? Having a multiple-field primary key on the 3 fields, or setting an index on the first field, which is not unique?
Thanks, Doori Bar
© Stack Overflow or respective owner