Re: why does explain tell me I'm using a seq scan?

Поиск
Список
Период
Сортировка
От Mark Harrison
Тема Re: why does explain tell me I'm using a seq scan?
Дата
Msg-id 3FAFE19C.8080009@pixar.com
обсуждение исходный текст
Ответ на why does explain tell me I'm using a seq scan?  (Mark Harrison <mh@pixar.com>)
Список pgsql-general
Adam Ruth wrote:
> The optimizer is looking at the statistics and figuring that the second
> query could be done better with a sequential scan (perhaps there aren't
> many rows).  Have you analyzed the table to get the statistics up to
> date?  It could also be that the seq scan is faster with the size of
> your table.

Thanks!  An analyze fixed it and reduced our search time from seconds
to milliseconds.

Is there ever any reason to do a "vacuum" without doing a "vacuum analyze"?

Mark


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Two build problems - openssl and plperl on RedHat
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Temp rows - is it possible?