![]() |
|
||
|
|
|
||
|
|
|||
|
|
|||||||
| Notices |
| Legacy Archived Main Board Business chat and general industry chat. All participation is welcome. Dont post your fucking spam here. |

![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Fat Fucking Nobody
Want to see your own Advertising Here!
Join Date: Oct 2002
Posts: 6,523
|
Good stuff for us tech heads.
I'm guessing most people today just openly trust that their hosts' SAs are competent. I'll say this, even the most sloppily configured apache will rarely be the source of your bottle neck on today's web. If it is, you've got a good problem to have (lots of traffic). When I see sites running like a slug today it's usually some piss poor database design and config with some sloppy PHP running on the front of it. |
|
|
|
|
|
#2 | ||
|
Members
Join Date: Mar 2004
Posts: 42
|
Quote:
with the variable names changed to protect the cluless: $query = "SELECT name, subject, message FROM contact"; while($i < $max) { $result = mysql_query(SELECT thing, thang, thung from stuff WHERE id=$i); $row = mysql_fetch_array($result, MYSQL_ASSOC); echo "Name :{$row['thing']} " . "Subject : {$row['thang']} " . "Message : {$row['thung']} "; } Umm, excuse me Mr. "programmer", wouldn't that run 500 times faster if you did the query once instead of 500 times?: $result = mysql_query(SELECT thing, thang, thung from stuff WHERE id < $max); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "Name :{$row['thing']} " . "Subject : {$row['thang']} " . "Message : {$row['thung']} "; } and you know none of the tables have any indexes. Quote:
of them suggests "let's add another pointless proxy web server onto this machine" the other will reply "how about commenting out the 85% of crap we're currently running but not using instead". Competence doesn't seem to be any more common in the hosting industry than in so many others. Sure there a few knowledgeable people, but we regularly spend significant time educating hosts on the basics.
__________________
Ray Morris support AT bettercgi.com Strongbox - The next generation in site security Throttlebox - The next generation in intelligent bandwidth control Clonebox - Backup (disaster recovery) on steroids Make money with your sig |
||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|