| От | Richard Huxton |
|---|---|
| Тема | Re: index not being used. Why? |
| Дата | |
| Msg-id | 45F18474.4000207@archonet.com обсуждение исходный текст |
| Ответ на | index not being used. Why? (Gerardo Herzig <gherzig@fmed.uba.ar>) |
| Список | pgsql-sql |
Gerardo Herzig wrote: > -> Seq Scan on pages (cost=0.00..9.08 rows=408 width=55) > Watch the last row of the explain command. It makes a sequential scan on > the pages table, like it is not using the index on the "id" field. You only have 408 rows in the table - it's probably not worth the trouble of using an index and *then* fetching the rows. Especially since it's going to match most of the pages anyway. Try adding a few thousand rows, analyse and see if it decides to use the index then. -- Richard Huxton Archonet Ltd
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера