Posted by SquishedOrange on 10/31/06 19:53
You should be able to send more than one query to mysql through one
connection.
Can you show the code please?
You could also use a persistant connection if your site is in frequent
use and your host supports it. mysql_pconnect(). I would hesitate
before using that though...
If you say connecting to database takes "3" in processing time.
Sending a select query takes about 1. **
So your performing 4 for every query, which is very inefficient.
** Depends on server type, installation & load.
Navigation:
[Reply to this message]
|