"George" <
viju...@gmail.com> wrote in message
news:a45f57c0-e9ac-4687...@ob2g2000pbb.googlegroups.com...
The LAN is the obvious suspect, but there are other things to check first.
I know you said that when you deploy the application and MySQL to the same
server it is fast, but is this the same server that you have your MySQL on
now? So if you log in to the same server that your application is querying
against, is it fast locally for those same queries? So is it an issue with
the server you have deployed MySQL to or an issue with the database on that
server? For example lack of indexes might not show up in testing (because
the database is typically small) but are likely to show up fairly quickly on
a live system.
Thinking about the LAN, what speed is the LAN and how much data do your
queries pull back? For example if your LAN were 100mbps and each query is
pulling back 1MB of data then you won't get more than 10 queries a second
(if that).
Hope this helps.
--
Brian Cryer
www.cryer.co.uk/brian