| 
 Posted by rich on 11/16/06 18:36 
Erwin Moller wrote: 
> Hi, 
> 
> I understood that if: 
> - the same login-credentials (username/password) 
> - from the same host 
> are used in your scripts, the connection will be recycled if you use 
> mysql_pconnect(). 
> 
> Are you using pconnect? 
> 
 
No, I'm not. I think my biggest problem here that I don't fully 
understand is how can I (or is it possible to) use a resource for 
multiple instances of an object.  I understand that something like a 
static object will live throughout an object and it's children.  But if 
5 different processes open 5 different instances of the same object, is 
it even possible in PHP to give them the same resource if they never 
know about each other?   I suppose if what you say about pconnect is 
true, then you just answered my question. 
 
Thanks for the other tips on indexing too.. that'll definitely help.
 
[Back to original message] 
 |