| От | Tom Lane |
|---|---|
| Тема | Re: index use again and again |
| Дата | |
| Msg-id | 21569.1013527758@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | index use again and again (Holger Marzen <holger@marzen.de>) |
| Ответы |
Re: index use again and again
|
| Список | pgsql-general |
Holger Marzen <holger@marzen.de> writes:
> Are 152428 rows not enough to use the index?
More like "there are too many rows to use the index".
You've got a query that is estimated to hit 22322/152428 = 15% of the
table. If the rows in question are uniformly scattered through the
table then the system will certainly have to read every block of the
table to get them all. It may as well read the table sequentially,
rather than do the extra I/O to read the index too.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера