Re: Similar tables, different indexes performance

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Similar tables, different indexes performance
Дата
Msg-id 20041213180303.GA8830@wolff.to
обсуждение исходный текст
Ответ на Similar tables, different indexes performance  (Alvaro Nunes Melo <al_nunes@atua.com.br>)
Список pgsql-sql
On Mon, Dec 13, 2004 at 15:17:49 -0200, Alvaro Nunes Melo <al_nunes@atua.com.br> wrote:
> db=> SELECT COUNT(*) FROM titulo WHERE cd_pessoa = 1;
>  count 
> -------
>    220
> (1 record)
> 
> Time: 48,762 ms
> db=> SELECT COUNT(*) FROM movimento WHERE cd_pessoa = 1;
>  count 
> -------
>    221
> (1 record)
> 
> Time: 1158,463 ms

I suspect you have a lot of dead tuples in those tables.
Have you vacuumed them recently?
Was there enough FSM space when you did so?

You might try doing VACUUM FULL on each table now and see if that
fixes the problem.


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

Предыдущее
От: Alvaro Nunes Melo
Дата:
Сообщение: Similar tables, different indexes performance
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: [NOVICE] Indexing Strategy