Quote:
Originally Posted by Korvacs
Atually, the way the connection should be used is that its opened, makes 1 query and then closes again, theres no requirement for the connection to be kept open while its not being used, so the connection should never really be open long enough for it to die, because the server should close it when its finshed with it.
|
You're right, and with the quick connection time that the MySQL servers (and most likely others) have, speed shouldn't be an issue, but if you create a new connection every time a thread needs one, isn't that adding overhead in terms of (wasteful) resource usage, and unpredictable behavior under load?
That's what I've gathered by looking into connection pooling (which may or may not be useful in the context of a CO2 PServer)
[Only registered and activated users can see links. Click Here To Register...].