Hi - Did you check the code before your reply? Yes, performance is normally all about having indexes (and persuading Mysql to utilise those indexes!). Yet the two different statements both seem to specify the joins using the same fields in the same way for example:
Quote:
|
WHERE '2009-02-07 00:00:00' < download_log.stamp
|
So my question remains - why is the new code more efficient than the first? I may be missing something in the syntax but the only difference appears to be avoiding the use of an Inline view - the fields are joined without use of functions in both queries. Would the use of the syntax "LEFT JOIN" instead of "INNER JOIN" explain it?