Hello,
I have a php application on a Microsoft IIS server that can currently
connect and execute many queries to my MsSQL server. Unfortunately,
there are a few tables I need to serve that I'm thinking are just too
big for php/odbc.
Again, many SQL queries (select * from table) work fine, but when I
try inner joins and groups, I get:
CGI Timeout
The specified CGI application exceeded the allowed time for
processing. The server has deleted the process.
I think it's an IIS problem, but I could be wrong. Either way I have
no idea how to extend the timout.
If anyone could throw out some advice, I would be extremely
appreciative.
Thanks!
-Ed
David Harper - 30 Nov 2007 22:10 GMT
> Hello,
>
[quoted text clipped - 14 lines]
> If anyone could throw out some advice, I would be extremely
> appreciative.
If I were in your position, my first thoughts would be:
Do my tables have all of the necessary/appropriate indexes? Missing
indexes can *reall* slow a query, especially a join.
Are my SQL queries as efficient as they could be? Use EXPLAIN to see
which indexes are being used.
Does my MySQL server have large enough internal buffers, especially the
key buffer which is used to store indexes for tables? It's no use
having indexes if the server cannot keep them in memory long enough to
use them.
By the way, this is a Java database programming newsgroup. You're using
PHP, not Java. Why on earth did you post here, and not a PHP-related
group? Fortunately, your problems are likely to be unrelated to your
choice of programming language.
David Harper
Cambridge, England