Re: Re-Reason of Slowness of Query
От | Adarsh Sharma |
---|---|
Тема | Re: Re-Reason of Slowness of Query |
Дата | |
Msg-id | 4D89C704.5080603@orkash.com обсуждение исходный текст |
Ответ на | Re: Re-Reason of Slowness of Query (Vitalii Tymchyshyn <tivv00@gmail.com>) |
Ответы |
Re: Re-Reason of Slowness of Query
Re: Re-Reason of Slowness of Query |
Список | pgsql-performance |
I just want to retrieve that id 's from page_content which do not have any entry in clause2 table.
Thanks , Adarsh
Vitalii Tymchyshyn wrote:
Thanks , Adarsh
Vitalii Tymchyshyn wrote:
23.03.11 11:17, Adarsh Sharma написав(ла):I don't understand it too. What are you trying to get? Is it
I think it is very much faster but I don't understand the query :
explain select distinct(b) from t1,t2 where t1.b >t2.d union all select distinct(b) from t1,t2 where t1.b <t2.d;
select distinct(b) from t1 where b > (select min(d) from t2) or b < (select max(d) from t2)
?
Can you explain in words, not SQL, what do you expect do retrieve?
Best regards, Vitalii Tymchyshyn
В списке pgsql-performance по дате отправления: