Jump to content


Photo

PHP/Mysql Server Load Help


  • Please log in to reply
1 reply to this topic

#1 amcswebs

amcswebs

    Newbie

  • New Members
  • Pip
  • 1 posts
  • LocationDuBois, PA

Posted 27 April 2003 - 09:22 AM

I need the help of some of you PHP experts in Mysql/PHP Programming urgently.

I create routines and programs that are VERY database intensive.. The most commonly requested programs require MANY users to access a LOT of data in various tables and it is never known just how many will be doing this at the same time.

What I NEED from you experts (PLEASE) is suggestions on how to optimize my php/mysql coding to reduce server load.

I have spent hours upon hours searching the web for such information but as I\'m sure you all know this process results in 1 article out of probably 1,000 that has some useful value.. LOL.. to say the least it sucks.

If YOU can help me with suggestions with ideas for reducing Server load in my php/myslq programming it would be MOST appreciated.

Please post your replies here so that others can share in you knowledge and if possible email me at webmaster@amcswebs.com. If you have a website PLEASE send me the url and a banner if you have one. If I use your suggestions I will be sure to make sure people visit your site and will post links on all my sites.

Glen McDonald
AMCS Web Services.
For reasonable php/mysql Web Site and/or subroutines, please contact visit http://www.amcswebs.com

#2 effigy

effigy

    Advanced Member

  • Staff Alumni
  • 3,600 posts
  • LocationIL

Posted 27 April 2003 - 02:34 PM

first off make sure the web server is handling it\'s load properly. are you using apache? as for coding, don\'t use any functions that may be slower (e.g.: the mysql_result documentation states the other fetch ways are faster). use mysql_free_result. use persistent connections (mysql_pconnect). what configuration is mysql using? it comes with small/med/lrg defaults which recommend which you should use. that\'s about it -- i haven\'t read up on the load balancing yet :shock: perhaps run to your local bookstore and thumb through a few of those really think mysql books?
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com