| От | Craig Ringer |
|---|---|
| Тема | Re: select distinct and index usage |
| Дата | |
| Msg-id | 47F984DF.9060801@postnewspapers.com.au обсуждение исходный текст |
| Ответ на | select distinct and index usage ("David Wilson" <david.t.wilson@gmail.com>) |
| Ответы |
Re: select distinct and index usage
|
| Список | pgsql-general |
David Wilson wrote: > On another table in the same database with a much smaller number of > total rows (~15m rows), I have the exact same situation- but in this > case the index on the datestamp column *is* used: > Have you run ANALYZE on both tables? It might be worth increasing the stats collected on the datestamp column (or all columns in the table), re-running ANALYZE on the table, and seeing what happens. Also, is there any chance that that's a lot more variation in datestamp values in your problem table than the one where the index is used? -- Craig Ringer
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера