Re: PostgreSQL does not choose my indexes well
Вложения
В списке pgsql-performance по дате отправления:
| От | Stephen Frost |
|---|---|
| Тема | Re: PostgreSQL does not choose my indexes well |
| Дата | |
| Msg-id | 20200424183323.GO13712@tamriel.snowman.net обсуждение |
| Ответ на | Re: PostgreSQL does not choose my indexes well (Jeff Janes <jeff.janes@gmail.com>) |
| Ответы |
Re: PostgreSQL does not choose my indexes well
Re: PostgreSQL does not choose my indexes well |
| Список | pgsql-performance |
Greetings, * Jeff Janes (jeff.janes@gmail.com) wrote: > In order to read 1409985 / 12839 = 109 rows per buffer page, the table must > be extraordinarily well clustered on this index. That degree of clustering > is going to steal much of the thunder from the index-only scan. But in my > hands, it does still prefer the partial index with index-only scan by a > cost estimate ratio of 3 to 1 (despite it actually being slightly slower) > so I don't know why you don't get it being used. Turns out to be because what was provided wasn't actually what was being used- there's a domain in there and that seems to gum up the works and make it so we don't consider the partial index as being something we can use (see the discussion at the end of the other sub-thread). Thanks, Stephen
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера