Hi,
I have one pretty big table, which contains informations about my users, and I'm trying to optimise it.
My main question is: Is there any point in creating an index on the "username" field, considering these values will be unique?
If not, I thought I could add a field which would only contain the first character of the username, and create an index on this one. I would then do "WHERE first_char = '$first_char' AND username = '$username'"
Do you think this would be a good idea?