kevinandrada
kevinandrada

Reputation: 499

Difference in speed if website and database on same/different server

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

Answers (1)

pDiller
pDiller

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

Related Questions