codeigniter remote database connection very slow why code example
Example: codeigniter remote queries very slow
//Unless your app is very hard on the DB,
//it is very likely that reverse DNS resolution is the cause.
//Disable it on the remote server by adding
//skip-name-resolve to your my.cnf