Is a search through numbers (INT) faster than characters in an mySQL database?
Regards,
Thijs
Is a search through numbers (INT) faster than characters in an mySQL database? Regards,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In practice the difference will be small – it will increase depending on the relative length of the 2 fields. The question pre-supposes that 2 are interchangeable – which is a very bad assumption given that MySQL natively supports an ENUM data-type.
If it’s that important to you, why not measure it?