Jump to content

SELECT * ?


Suchy

Recommended Posts

In my db I have a table with couple of varchars (limited to 100 characters), 3 ints (limited to 15 chars) and 2 text fields.

These fields are for information for photos uploaded to my site (ex. link to it, where it was taken, date, camera model...)

 

I have a page that lists all of them and some of the info.

So does it matter if I use a quere that selects everything, or should I select only what is being used.

Because I did not notice any difference in performence or speed.

Link to comment
Share on other sites

It probably won't affect the speed to fetch data from disk, as the entire record will be in a single page.  But it may affect the speed to send data over the network (if you are doing that).  And if you have a large result set, you will notice that more.  If the mysql server is on the same machine as your script, you probably won't notice much difference.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.