Should I be concerned about performance with connections to multiple databases?
- by Josh Ryan
I have a PHP app that is running on an Apache server with MySQL databases.
Based on the subdomain that users access, I am connecting them to a database (sub1.domain.com connects to database_sub1 and sub2.domain.com connects to database_sub2). Right now there are 10 subdomain-database combos, but that number could potentially grow to well over 100.
So, is this a bad thing?
Considering my situation, is myslq_pconnect a better way to go?
Thanks, and please let me know if more info would be helpful.
Josh