Sequence Scan vs. Index scan

Поиск
Список
Период
Сортировка
От Fernando Lujan
Тема Sequence Scan vs. Index scan
Дата
Msg-id 44204107.3040708@mandic.com.br
обсуждение исходный текст
Ответы Re: Sequence Scan vs. Index scan  ("Steinar H. Gunderson" <sgunderson@bigfoot.com>)
Список pgsql-performance
Hi guys,

I'm trying to figure out when Sequence Scan is better than Index Scan. I
just want to know this because I disabled the sequence scan in
postgresql and receive a better result. :)

Two tables.

Table 1 (1 million rows )
-----------
id
text
table2_id

Table 2 (300 thousand rows)
----------
id
text 2

When I join these two tables I have a sequence_scan. :(

Thanks in advance.

Fernando Lujan

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Best OS & Configuration for Dual Xeon w/4GB &
Следующее
От: "Steinar H. Gunderson"
Дата:
Сообщение: Re: Sequence Scan vs. Index scan