Skip navigation links

MySQL Forums :: General :: Sub Query is Very Slow


Advanced Search

Re: Sub Query is Very Slow
Posted by: Asad ahmed ()
Date: December 05, 2011 03:15AM

The first part (i.e)

drop table if exists tmp;
create table tmp
select cont from temp_tag
where heading is null or heading='' or publishdate<>'2011-10-20' or type<>'story' or cont=0;

is not taking much time but the second query

select o.articlenumber
from temp_tag o left join tmp on o.articlenumber=tmp.cont
where tmp.cont is null;

is taking to much time to execute.

Options: ReplyQuote


Subject Written By Posted
Sub Query is Very Slow Asad ahmed 12/02/2011 11:33PM
Re: Sub Query is Very Slow Peter Brawley 12/03/2011 01:38PM
Re: Sub Query is Very Slow Asad ahmed 12/04/2011 10:52PM
Re: Sub Query is Very Slow Peter Brawley 12/05/2011 02:30AM
Re: Sub Query is Very Slow Asad ahmed 12/05/2011 03:15AM
Re: Sub Query is Very Slow Rick James 12/05/2011 11:44PM
Re: Sub Query is Very Slow Rick James 12/05/2011 11:48PM
Re: Sub Query is Very Slow Asad ahmed 12/06/2011 02:13AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.