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

From: Date: Mon, 24 Sep 2007 08:53:41 +0000
Subject: Re: Limiting connection to mysql using old mysql module (not mysqli)
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-262411@lists.php.net to get a copy of this message
Chris wrote: >> "Happening at the same time; simultaneous." >> >>> 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. > > 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. For a while, yes. I don't believe there is any sense in talking about server load, number of connections, caching and concurrency without talking about over how long. When you think length("now")==0, you can have an infinite number of connections. /Per Jessen, Zürich

« previous php.general (#262411) next »