Re: sequential scan unduly favored over text search gin index
В списке pgsql-performance по дате отправления:
| От | Sushant Sinha |
|---|---|
| Тема | Re: sequential scan unduly favored over text search gin index |
| Дата | |
| Msg-id | 1308585840.2488.13.camel@dragflick обсуждение исходный текст |
| Ответ на | Re: sequential scan unduly favored over text search gin index ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>) |
| Ответы |
Re: sequential scan unduly favored over text search gin
index
|
| Список | pgsql-performance |
On Mon, 2011-06-20 at 10:58 -0500, Kevin Grittner wrote:
> 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?
Yes and I mentioned that the row estimates are correct, which indicate
that the problem is somewhere else.
-Sushant.
> -Kevin
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера