Re: Wrong rows count estimation (explain, gist, tsearch)
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Wrong rows count estimation (explain, gist, tsearch) |
| Дата | |
| Msg-id | 263.1254147968@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Wrong rows count estimation (explain, gist, tsearch) (Sergey Konoplev <gray.ru@gmail.com>) |
| Ответы |
Re: Wrong rows count estimation (explain, gist, tsearch)
|
| Список | pgsql-general |
Sergey Konoplev <gray.ru@gmail.com> writes:
> The table filled with about 7.5E+6 rows. Most of them have different
> from default values in obj_tsvector column. I use "estimated rows
> count trick" to make search results counter faster, and every time
> when obj_tsvector is used estimation rows count is extremely differ
> from actual (eg. 6821 vs 372012). I played with SET STATISTICS but
> have no success.
8.3 has just a stub estimator for @@. You might have better results
with 8.4. In the particular example you're showing, though, I don't
think the poor rowcount estimate is making any difference to the
plan choice.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера