Re: Table with million rows - and PostgreSQL 9.1 is not using the index
В списке pgsql-general по дате отправления:
| От | Alan Hodgson |
|---|---|
| Тема | Re: Table with million rows - and PostgreSQL 9.1 is not using the index |
| Дата | |
| Msg-id | 7577831.QI7jfxcENd@skynet.simkin.ca обсуждение |
| Ответ на | Table with million rows - and PostgreSQL 9.1 is not using the index (Edson Richter <edsonrichter@hotmail.com>) |
| Ответы |
Re: Table with million rows - and PostgreSQL 9.1 is not
using the index
|
| Список | pgsql-general |
On Wednesday, December 05, 2012 02:44:39 AM Edson Richter wrote: > Sort (cost=11938.72..11938.74 rows=91 width=93) > Sort Key: t0.nome > -> Nested Loop (cost=0.00..11938.42 rows=91 width=93) > -> Nested Loop (cost=0.00..11935.19 rows=91 width=85) > -> Seq Scan on logradouro t2 (cost=0.00..11634.42 > rows=91 width=81) > Filter: ((cep)::text ~~ '81630160%'::text) According to that the logradouro table only has 91 rows, which is why it seq- scanned it. Has it been analyzed? Also, partial text matches require a special index declaration, as I recall. Maybe post a \d of each table to help troubleshoot this.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера