Re: Strange behaviour of SELECT ... IN

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Strange behaviour of SELECT ... IN
Дата
Msg-id 20020626141106.M96143-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: Strange behaviour of SELECT ... IN  (Jorge Sarmiento <jsarmiento@ccom.org>)
Список pgsql-general
On Wed, 26 Jun 2002, Jorge Sarmiento wrote:

> the first one is an INDEX SCAN, the second one a SEQUENTIAL SCAN.
>
> number of rows in table has nothing to do...

Sure it does.  As the number of rows selected approaches the number
of rows in the table the cost of the index scan relative to sequential
scan can increase due to the fact that we're reading both the index
and the heap blocks (for row validity testing - and doing it in a
possibly random order) as opposed to a sequential read set of the heap.




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

Предыдущее
От: Jorge Sarmiento
Дата:
Сообщение: Re: Strange behaviour of SELECT ... IN
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: Advocacy Idea.