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
https://forums.phpfreaks.com/topic/54381-select/
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
https://forums.phpfreaks.com/topic/54381-select/#findComment-268995
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.