Re: Inner join vs where-clause subquery

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Inner join vs where-clause subquery
Дата
Msg-id 458813ED.50108@archonet.com
обсуждение исходный текст
Ответ на Inner join vs where-clause subquery  ("Jeremy Haile" <jhaile@fastmail.fm>)
Ответы Re: Inner join vs where-clause subquery  ("Jeremy Haile" <jhaile@fastmail.fm>)
Список pgsql-performance
Jeremy Haile wrote:
> I have the following query which performs extremely slow:
> select min(nlogid) as start_nlogid,
>        max(nlogid) as end_nlogid,
>        min(dtCreateDate) as start_transaction_timestamp,
>        max(dtCreateDate) as end_transaction_timestamp
> from activity_log_facts
> where nlogid > ( select max(a.end_nlogid) from
> activity_log_import_history a)
> and dtCreateDate < '2006-12-18 9:10'

Can you post the EXPLAIN ANALYSE for this one please? That'll show us
exactly what it's doing.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: "Steven Flatt"
Дата:
Сообщение: Re: Insertion to temp table deteriorating over time
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Insertion to temp table deteriorating over time