Hello,
I have a script that queries a mysql database table. I don't know everything there is to know about making the query as efficient as possible. I know there are primary keys and index columns in my table...HOWEVER my question how much slower it is for php/mysql to search a table using a string rather than a number.
For example. I'm providing content according to the user's request as following:
topic_url_title = 'about-us' and language = 'english'
The topic_url_title is always unique and language may have other alternatives.
How much faster would it be if I had a similar query but with numbers:
topic_id = 27 and language_code = 1
I would appreciate if anyone could offer me a brief explanation.
Thanks in advance!
Thomas