| От | Markus Schaber |
|---|---|
| Тема | Re: Index scan startup time |
| Дата | |
| Msg-id | 442BD0A9.8050805@logix-tt.com обсуждение исходный текст |
| Ответ на | Re: Index scan startup time (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-performance |
Hi, Peter, Peter Eisentraut wrote: >>>The table has seen VACUUM FULL and REINDEX before this. >>But no analyze? > ANALYZE as well, but the plan choice is not the point anyway. Maybe you could add a combined Index on activity_id and state, or (if you use this kind of query more often) a conditional index on activity_id where state in (10000,10001). Btw, PostgreSQL 8.1 could AND two bitmap index scans on the activity and state indices, and get the result faster (i presume). Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера