![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a users table, the typical firstname, lastname, phone, email etc.. Will have about 10,000 users. Mostly all selects as opposed to updates, inserts I was thinking of having the primary key as the email address field which I have set at varchar(70) and limiting the index to the first 15 characters. Is this going to be too slow compared to an index using an autoincremented integer? I prefer the email address, since it has meaning and searches would be straight forward. Any suggestions? My platform is : MySQL 5.0.22 /INNODB Thanks Roshan |
#3
| |||
| |||
|
|
I have a users table, the typical firstname, lastname, phone, email etc.. Will have about 10,000 users. Mostly all selects as opposed to updates, inserts I was thinking of having the primary key as the email address field which I have set at varchar(70) and limiting the index to the first 15 characters. Is this going to be too slow compared to an index using an autoincremented integer? |
|
I prefer the email address, since it has meaning and searches would be straight forward. |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |