Reputation: 499
Are there any difference in database connection speed (initial DB connection request, queries, etc.) at all if:
A. Website and database are on the same server. Basically host is localhost
.
B. Website is on Server I
and database is on Server II
. Website will access database via remote IP address.
Actual speed test will really help.
Upvotes: 0
Views: 258
Reputation: 73
It depends on the connection between the Servers. A connection within localhost is normally faster because you're staying on the same system and no request or connection has to go through the network.
Upvotes: 1