Should I be concerned about performance with connections to multiple databases?
Posted
by Josh Ryan
on Stack Overflow
See other posts from Stack Overflow
or by Josh Ryan
Published on 2010-05-10T22:02:40Z
Indexed on
2010/05/10
22:24 UTC
Read the original article
Hit count: 309
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
© Stack Overflow or respective owner