Danger of too many mysql connections using POG?

0 views
Skip to first unread message

erock

unread,
Sep 16, 2006, 7:18:25 PM9/16/06
to Php Object Generator
Hey I'm using POG for a big site and I need to know about MySQL
connections when using POG. Admitedly I'm a PHP novice, so POG seems
like a great help to me. My question is, if I have a PHP script that
opens up more than 5, maybe 10, maybe 30 pog objects at a time, does
this have a danger of opening too many MySQL connections?

What are the considerations of using POG for a site with a lot of data
from different tables on a big site with tons of users?

Thanks
eric

Joel

unread,
Sep 16, 2006, 8:55:22 PM9/16/06
to Php Object Generator
Hello Eric,

POG uses mysql_connect(), which therefore means that connections are
managed by mysql and re-used. Therefore, there will be only 1
connection to mysql regardless of the no. of objects instantiated.

Hope this answers your question.

Joel

erock

unread,
Sep 19, 2006, 3:36:30 PM9/19/06
to Php Object Generator
Yes, that answers my question, thanks a lot!

Reply all
Reply to author
Forward
0 new messages