Forum Moderators: open
While doing the DB connection what should I use my DB host to be?
"localhost" or
"ip of my domain" or
"domain"
Since my database is located on the same hosting server, I can access it using the above three options. I want to know which one is more effective and why? Also what is the performance difference?
Thanks,
AjiNIMC
I'd go for localhost or 127.0.0.1 if available.
then the domain IP and then the domain name.
But I wanted to see if someone has done some reasearch to find the difference in perfomance. Does it create a significate difference in performance? May be for the first time.