With a rather extensive SELECT query, that has 6 inner joins (two of which have SELECT MAX) it is taking up to 10 or more seconds to process. However this is returning only a single result, with only lookup values (no user data) present and a 'do while' loop has yet to be applied.
Please note that 8 tables total are being joined and one the inner joins is being run on a large lookup (SELECT MAX) having over 70,000 + rows// a zip code lookup table.
The query itself is searchable on two GET variables passed in the url.
Looking at the query, I do need inner joins (left joins may speed the query I realize, but don't beleive they could be used)
The other thing I'm considering is the order of the inner joins.
-Does the ordering of the joins really matter?
(which is performed before the other)
The tables are optimized (indexed columns)
-Can spaces in the query slow the query?
- Does changing the htaccess from .php to .htm slow this? - From my observations I'm going to say yes.