This applies for sure to MySql, but I'm pretty sure that it's an across the board thing as well. When a database is on the same machine as the process querying it, it uses ultra fast Unix domain sockets to return data. If you put it on another machine then you are reduced to using the slower TCP sockets. If you are using CGI, and not mod_perl, then I'd advise putting the database on the same box as the script, and then using "localhost" to call the database. If you have the DB on a separate box, then you'll have to allow the DB to recieve queries from the machine that you are on, and you'll have to specify the hostname somehow... and that will be slower.
_______________________________________________
"Intelligence is a tool used achieve goals, however goals are not always chosen
wisely..."
In reply to Re: Ha! Another database question!
by chorg
in thread Ha! Another database question!
by r.joseph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |