join vs exists

Поиск
Список
Период
Сортировка
От AI Rumman
Тема join vs exists
Дата
Msg-id AANLkTin4erNwsmyy052lb-ZNbvqPOLWMgS5V66q6Fd9T@mail.gmail.com
обсуждение исходный текст
Список pgsql-performance
Which one is good - join between table or using exists in where condition?

Query 1;

Select a.*
from a
where exists
(
select 1 from b inner join c on b.id1 = c.id where a.id = b.id)

Query 2:
select a.*
from a
inner join
(select b.id from b inner join c on b.id1 = c.id) as q
on a.id = q.id

Any suggestion please.

В списке pgsql-performance по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: B-Heaps
Следующее
От: venu madhav
Дата:
Сообщение: Obtaining the exact size of the database.