Very different index usage on similar tables

Поиск
Список
Период
Сортировка
От Alvaro Nunes Melo
Тема Very different index usage on similar tables
Дата
Msg-id 1102784484.4166.8.camel@localhost
обсуждение исходный текст
Список pgsql-performance
Hi,

I have two similar tables in a database, one stores persons and the
other stores telephones. They have a similar number of records (around
70.000), but a indexed search on the persons' table is way faster than
in the telephones' table. I'm sending the explains atacched, and I
believe that the problem can be in the fact the the explain extimates a
worng number of rows in the telefones' explain. I'm sending the explains
atacched, and the table and columns' names are in Portuguese, but if it
makes easier for you guys I can translate them in my next posts.

The in dex in the telephone table is multicolumn, I'd tried to drop it
and create a single-column index, but the results were quite the same.

Thanks,

--
+---------------------------------------------------+
|  Alvaro Nunes Melo    Atua Sistemas de Informacao |
| al_nunes@atua.com.br        www.atua.com.br       |
|    UIN - 42722678            (54) 327-1044        |
+---------------------------------------------------+

Вложения

В списке pgsql-performance по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: [GENERAL] Query is not using index when it should
Следующее
От: Tom Lane
Дата:
Сообщение: Re: LIMIT causes SEQSCAN in subselect