| От | Tom Lane |
|---|---|
| Тема | Re: Slow query - index not used |
| Дата | |
| Msg-id | 27761.1074642972@sss.pgh.pa.us обсуждение |
| Ответ на | Slow query - index not used (Michael Brusser <michael@synchronicity.com>) |
| Ответы |
Re: Slow query - index not used
|
| Список | pgsql-hackers |
Michael Brusser <michael@synchronicity.com> writes:
> Using "DEFAULT_STATISTICS_TARGET = 100" made db use index for
> field = 'abc', but field = 'xyz' still results in the table scan.
What's the actual distribution of values in these columns? Are you
searching for values that are particularly common or uncommon?
> Also 'rows' number reported in the plan is way off.
That would seem to be the crux of the problem, but you'd better be more
specific than "way off".
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера