MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 18th, 2000, 11:02 AM
asuzuki asuzuki is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Bremgarten, Switzerland
Posts: 17 asuzuki User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi everybody,

I use php to interface with a MySQL database. I'm currently developing a forum system using the DB_Sql class from PHPLIB. My webhost is kinda slow, and I want to optimize the load on the MySQL server. Due to the nature of a forum, functions may occasionally be called many times, even recursively, for example getting the subitem of thread then the next item etc.
I currently create a new DB object in every function, and the code tells me that the PHPLIB object makes a persistent connection calling mysql_pconnect(); How does the MySQL server handle multiple connects with the same user and the same database etc? Does it bundle them? Or this it treat them as single connections?

Thanks
Alex Suzuki

PS: you can see a developer version of the forum @ http://cyphor.cynox.ch

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > How does MySQL handle multiple persistent connections


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway