From: Perrin Harkins Date: February 25 2010 3:19pm Subject: Re: EXPLAIN says DEPENDENT SUBQUERY despite no free variables List-Archive: http://lists.mysql.com/mysql/220802 Message-Id: <66887a3d1002250719g498e1ccen8ab6d683f7b4a82@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Feb 25, 2010 at 2:48 AM, Dan Nelson wrote: > IN is fine ( for example ... WHERE field1 IN (1,2,3,4,5,6) is extremely > efficient); Yes, I meant to say IN/NOT IN subqueries, not value lists. > it's subqueries in general that are killers. Subqueries in the FROM clause (aka derived tables) work pretty well, acting as an in-line temp table. Other subqueries perform poorly, as you say. - Perrin