Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There is no <strong>connection pooling</strong> in php.<br> <strong>mysql_pconnect</strong> and <strong>connection pooling</strong> are two different things. There are many problems connected with <code>mysql_pconnect</code> and first you should read the manual and carefully use it, but this is not connection pooling.</p> <p>Connection pooling is a technique where the application server manages the connections. When the application needs a connection it asks the application server for it and the application server returns one of the pooled connections if there is one free.</p> <p>We can do connection scaling in php for that please go through following link: <a href="http://www.oracle.com/technetwork/articles/dsl/white-php-part1-355135.html" rel="nofollow noreferrer">http://www.oracle.com/technetwork/articles/dsl/white-php-part1-355135.html</a></p> <p>So no connection pooling in php.</p> <p>As Julio said apache releases all resources when the request ends for the current reques. You can use mysql_pconnect but you are limited with that function and you must be very careful. Other choice is to use singleton pattern, but none of this is pooling.</p> <p>This is a good article: <a href="https://blogs.oracle.com/opal/highly-scalable-connection-pooling-in-php" rel="nofollow noreferrer">https://blogs.oracle.com/opal/highly-scalable-connection-pooling-in-php</a></p> <p>Also read this one <a href="http://www.apache2.es/2.2.2/mod/mod_dbd.html" rel="nofollow noreferrer">http://www.apache2.es/2.2.2/mod/mod_dbd.html</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload