Re: Limiting connection to mysql using old mysql module (not mysqli)
| From: | Chris | Date: | Mon, 24 Sep 2007 08:47:16 +0000 |
| Subject: | Re: Limiting connection to mysql using old mysql module (not mysqli) | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262410@lists.php.net to get a copy of this message | ||
Per Jessen wrote:
Chris wrote:I'm talking about "now" - not over any time span. 100 connections at the same time. If you get 100 people to your website at exactly the same time, the query cache may be used - but you're still going to have 100 connections to your database. The OP wanted to cut that down. In which case the answer is to cache things server side using something like memcache or even one of the pear modules. -- Postgresql & php tutorials http://www.designmagick.com/http://en.wiktionary.org/wiki/concurrent "Happening at the same time; simultaneous."Err yes - a query replied to out of cache will take less time to complete, therefore the connection will be given up faster, therefore less _concurrent_ connections.I guess my idea of concurrency is different to yours.100 people come to your website - that's still going to be 100 connections to the database, regardless of where the results come from.But if that is one every hour for a hundred hours, your max concurrency is 1.