Re: Limiting connection to mysql using old mysql module (not mysqli)
| From: | Stut | Date: | Fri, 21 Sep 2007 20:41:02 +0000 |
| Subject: | Re: Limiting connection to mysql using old mysql module (not mysqli) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262352@lists.php.net to get a copy of this message | ||
Stefano Esposito wrote:
i'm in need to limit the numbers of conection to the database, whithout loose of functionality. There is a general strategy to achieve this?1) Caching 2) Caching 3) Caching And if all that fails... 4) Caching Why do you need to reduce database connections? Is the site really busy enough to be legitimately maxing it out? Have you optimised the crap out of the database usage? If the site really has reached the limit and you can't find any code optimisations then you need to look at adding more hardware. Assuming you've developed the site "properly" you shouldn't have any problems scaling it horizontally. -Stut -- http://stut.net/