Re: Limiting connection to mysql using old mysql module (not mysqli)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux