Re:

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re:
Дата
Msg-id 20031225104501.V58695-100000@houston.familyhealth.com.au
обсуждение исходный текст
Ответ на  ("Michael Rothschild" <michael.r@corigin.co.il>)
Список pgsql-performance
> For example, if I have the following query:
> Select * from a where x in (select y from b where z=7)
> Then I would expect an index or hash structure to be created for b.y
> when it is first scanned and brought into the cache but I couldn't see
> it happening in the source.
> As I said, I only inferred it from reading the source - not from actual
> experiments - so I may be wrong.
> 1. Am I wrong?

You are wrong - this is old behaviour and one of the major speed
improvements of PostgreSQL 7.4 is that IN subqueries now use a hash index
and hence they are much faster.

Chris



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

Предыдущее
От: "Michael Rothschild"
Дата:
Сообщение:
Следующее
От: Tom Lane
Дата:
Сообщение: Re: