| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Baron Schwartz | Date: | February 25 2010 8:34pm |
| Subject: | Re: EXPLAIN says DEPENDENT SUBQUERY despite no free variables | ||
| View as plain text | |||
Hello, On Wed, Feb 24, 2010 at 10:11 AM, Yang Zhang <yanghatespam@stripped> wrote: > I have the following query. Note that the nested query has no > dependencies on the outer one, yet mysql reports it as dependent. Do an EXPLAIN EXTENDED followed by SHOW WARNINGS. You will see the "optimization" that mysqld applies to the subquery, to try to help it by adding a dependency on the outer query. There's nothing you can do about this :-( You have to use a JOIN in most cases. BTW, the general log is itself a performance killer when logged to tables. If I were you I'd use the slow query log and mk-query-digest from Maatkit.
| Thread | ||
|---|---|---|
| • EXPLAIN says DEPENDENT SUBQUERY despite no free variables | Yang Zhang | 24 Feb |
| • Re: EXPLAIN says DEPENDENT SUBQUERY despite no free variables | Perrin Harkins | 24 Feb |
| • Re: EXPLAIN says DEPENDENT SUBQUERY despite no free variables | Dan Nelson | 25 Feb |
| • Re: EXPLAIN says DEPENDENT SUBQUERY despite no free variables | Johan De Meersman | 25 Feb |
| • Re: EXPLAIN says DEPENDENT SUBQUERY despite no free variables | Perrin Harkins | 25 Feb |
| • Re: EXPLAIN says DEPENDENT SUBQUERY despite no free variables | Baron Schwartz | 25 Feb |
