I’m trying to figure out if:
SELECT * FROM tbl_mine
is slower than:
SELECT this_column,that_column FROM tbl_mine
in my MySQL queries. Can anyone speak to this based on experience?
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.
It’s slower because the database has to send more data back to the client, but unless the data you’re selecting is substantial this delay (on a simple query like you’ve provided) should be negligible. In other words, if you have a table with three fields,
SELECT field1, field2, field3 FROM tableis the same asSELECT * FROM table.