HI
I’ve converted a call center app from Oracle Forms into a web app using PHP
i am using oci_pconnect() to connect to the DB but we are seeing very high connections (in excess of 40 000 a day) because each user has a unique username and password.
this is obviously killing the DB
any advice on best practices to minimize the impact or reuse connections?
The most common I’ve come across is to use a generic account for DB access and moving user authentication elsewhere (LDAP?). Although there are other approaches (as per iddqd’s answer) you’re still going to end up with a large connection pool at both ends, and though the performance will be improved, there’s still an additional overhead each time a new session is created.