We are doing a test deployment with hosting Moodle on site and it's database on a remote server. If I do a traceroute from the local Moodle server to the remote database I get a 7ms total delay over 4 hops. The problem comes in that I get up to a 10s delay when logging in and once logged in also the same delay when navigating back to home. All other courses and sub menus opens almost immediately.
Does anyone possibly know what I can start looking at or suggest what could be causing this?