| От | Tom Lane |
|---|---|
| Тема | Re: Index not used in join.. (example included) |
| Дата | |
| Msg-id | 15421.1253283050@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Index not used in join.. (example included) (Ron Arts <ron.arts@neonova.nl>) |
| Ответы |
Re: Index not used in join.. (example included).
|
| Список | pgsql-novice |
Ron Arts <ron.arts@neonova.nl> writes:
> A. Kretschmer schreef:
>> You can try to force an index-scan by disabling the seq-scan (set
>> enable_seqscan='no';) and re-run the query.
> That does force it to use the index, but doesn't speed up my query.
IOW, the planner chose the right plan. Don't complain...
I think the real answer here is that the planner thinks the table
is too small to bother with an index. If you load up a non-toy
amount of data you might get a different plan.
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера