| От | Teodorescu Constantin |
|---|---|
| Тема | Re: [INTERFACES] Index unused with OR? |
| Дата | |
| Msg-id | 199805141341.QAA02105@flex.flex.ro обсуждение исходный текст |
| Ответ на | Index unused with OR? ("Olaf Mittelstaedt" <mstaedt@va-sigi.va.fh-ulm.de>) |
| Ответы |
Re: Index unused with OR?
|
| Список | pgsql-interfaces |
The index is used only if scanning the index is faster than scanning the table itself. Trying the index only with a coupleof records isn't good. Try inserting some hundred records inside and VACUUM the database after. When you vacuum the database you are updating the statistics table used by the query optimizer. The query optimizer willchoose to use an index when it found that it worths. Not using the index in OR queries was some-time ago a bug in PostgreSQL 6.1 if my memory is good. Think that has been solvedin new releases, am I wrong ? Constantin Teodorescu FLEX Consulting Braila, ROMANIA
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера