Re: seqscan for 100 out of 3M rows, index present

Поиск
Список
Период
Сортировка
От Willy-Bas Loos
Тема Re: seqscan for 100 out of 3M rows, index present
Дата
Msg-id CAHnozTiLdn=1XH7X4XyUoD3e=n2sXt=RUCZ3KWr-f6W8WK5SFQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: seqscan for 100 out of 3M rows, index present  (Jeff Janes <jeff.janes@gmail.com>)
Ответы Re: seqscan for 100 out of 3M rows, index present  ("ktm@rice.edu" <ktm@rice.edu>)
Список pgsql-performance
On Wed, Jun 26, 2013 at 10:31 PM, Jeff Janes <jeff.janes@gmail.com> wrote:

Why is it retrieving 3.1 million, when it only needs 17?
 

that's because of the sequential scan, it reads all the data.

cheers,

willy-bas
--
"Quality comes from focus and clarity of purpose" -- Mark Shuttleworth

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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: seqscan for 100 out of 3M rows, index present
Следующее
От: Victor Yegorov
Дата:
Сообщение: Re: seqscan for 100 out of 3M rows, index present