Does grabbing info from MySQL use up more bandwidth

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
anivad
Forum Commoner
Posts: 80
Joined: Thu Apr 09, 2009 11:16 pm

Does grabbing info from MySQL use up more bandwidth

Post by anivad »

...than a regular HTML page?

Because my bandwidth usage spiked up suddenly by a lot (10 MB) when I did a trial run with a page that gets quite a lot of info from a MySQL database - 13 columns, but each with only about 25 characters of text, including paths to 12 thumbnail images of about 5kb in size. And that was just me testing it out (and refreshing the page a few times when I edited code). That registered 500 hits in my log.

Strange thing is that I've had such pages for a long time and they never affected the bandwidth usage much, but I guess those were smaller pages...
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Does grabbing info from MySQL use up more bandwidth

Post by onion2k »

Most companies measure bandwidth as data that enters and leaves the network rather than the server, so no. However, if you're measuring all of the IO on the server as "bandwidth", and the MySQL server is on another machine, then it would. That would be quite unusual.
Post Reply