Re: sequential scan unduly favored over text search gin index

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: sequential scan unduly favored over text search gin index
Дата
Msg-id 4DFF27C5020000250003E9A4@gw.wicourts.gov
обсуждение исходный текст
Ответ на sequential scan unduly favored over text search gin index  (Sushant Sinha <sushant354@gmail.com>)
Ответы Re: sequential scan unduly favored over text search gin index
Список pgsql-performance
Sushant Sinha <sushant354@gmail.com> wrote:

> I have a tsvector column docvector and a gin index on it
> docmeta1_docvector_idx
>
> I have a simple query "select * from docmeta1 where docvector @@
> plainto_tsquery('english', 'free');"
>
> I find that the planner chooses a sequential scan of the table
> even when the index performs orders of magnitude.

Did you ANALYZE the table after loading the data and building the
index?

-Kevin

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

Предыдущее
От: Sushant Sinha
Дата:
Сообщение: sequential scan unduly favored over text search gin index
Следующее
От: Jon Nelson
Дата:
Сообщение: bad plan: 8.4.8, hashagg, work_mem=1MB.