From: Perrin Harkins Date: June 2 2010 5:49pm Subject: Re: how to avoid sub-query to gain performance List-Archive: http://lists.mysql.com/mysql/221793 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jun 2, 2010 at 10:28 AM, Lin Chun wrote: > *don't know it very clear, but i think is the problem of seems it > take full scaning* Yes, it has no indexes so it isn't good for very large subqueries. You should create them as temporary tables instead and give them indexes. - Perrin